MATLAB Answers

step respone, impulse response

4 views (last 30 days)
raheel butt
raheel butt on 18 Apr 2021
Edited: Stephan on 18 Apr 2021
s=tf('s');
kb=52;
k1=156;
k2=53;
G1=10/(s+0.01);
G2=G1/(1+kb*G1);
G3=G2*k2*k1;
G4=G3/(G3+1);
%%% Step response of closed loop system**********%%%
t=0:0.1:10;
%%% Impluse response of closed loop system**********%%%
t=0:0.1:10;
impulse(G4)
impulse response is shown but i want step response result as well .kindly tell me command to write step resone

Answers (1)

Stephan
Stephan on 18 Apr 2021
Edited: Stephan on 18 Apr 2021
s=tf('s');
kb=52;
k1=156;
k2=53;
G1=10/(s+0.01);
G2=G1/(1+kb*G1);
G3=G2*k2*k1;
G4=G3/(G3+1);
subplot(2,1,1)
impulse(G4)
subplot(2,1,2)
step(G4)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!