Question 11.15.4: Compute and plot in the same figure the step responses of tw...

Compute and plot in the same figure the step responses of two systems with transfer functions

H_1(s)=\frac{10}{(s\ +\ 1)(s\ +\ 0.2\ -\ 10i)(s\ +\ 0.2\ -\ 10i)}

and

H_2(s)=\frac{10(s\ +\ 3)}{(s\ +\ 1)(s\ +\ 0.2\ -\ 10i)(s\ +\ 0.2\ -\ 10i)}

z1=[];
p1=[-1 -.2+10j -.2-10j];
k1=10;
H=zpk(z1,p1,k1);
t=0:.1:20
y1=step(H,t)
z2=-3
p2=[-1 -.2+10j -.2-10j];
k2=10;
[num,den]=zp2tf(z2,p2,k2);
y2=step(num,den,t)
plot(t,y1,t,y2, ':')
legend('Step1', 'Step2')

Screenshot 2022-11-13 203029

Related Answered Questions