Developing a generalized code to obtain the impulse response and the output for a given input for any LTIC in MATLAB and then plotting it

155 Views Asked by At

Equation of dynamics are given by the differential equations

System 1.1 : $\quad\quad (D+2)x(t) = (3D +5) r(t)$

System 1.2 : $\quad\quad D(D+2) x(t) = (D+4) r(t)$

System 1.3 : $\quad\quad (D^2 +2D+1) x(t) = D r(t)$

We have to write a code which can obtain its impulse response and its output then plot both of them. I have never worked on Matlab before so i have no idea how to do this. I have tried solving this on paper but on Matlab i have no idea how to do this.