Question 11.15.6: Compute and plot the response of the system with transfer fu...

Compute and plot the response of the system with transfer function

H(s)=\frac{s^2\ -\ 1}{s^3\ +\ 2s^2\ +\ 3s\ +\ 4}

to the input signal x(t) = e^{-0.1t} cos(t), 0 ≤ t ≤ 60.

num=[1 0 -1];
den=[1 2 3 4];
H=tf(num,den);
t=0:.1:60;
x=exp(-0.1*t).*cos(t);
y=lsim(H,x,t);
plot(t,y);
legend('System response y(t)')

Screenshot 2022-11-13 205930

Related Answered Questions