Hello, I am trying to solve this problem: Obtain the impulse response of G_p = 100/(s^2+100) preceeded by a zero-order hold with sampling time T=0.05. Verify the solution with MATLAB.
My solution: The system transfer function, assuming T=0.05, is G(z) = 0.1224(z+1)/(z^2-1.7552z+1). Using long division method, the unit impulse response of the system is y(0)=0, y(1*T)=0.1224, y(2T)=0.3372, y(3T)=0.4695. Here is MATLAB code:
>> G = tf([0.1224 0.1224], [1 -1.7552 1], 0.05);>> y = impulse(G, 3*0.05) y = 0 2.4480 6.7447 9.3903
Which does not match with the theory. On the other hand, if I do not specify the sampling time or just use Ts = 1, the results will match:
>> G = tf([0.1224 0.1224], [1 -1.7552 1], []) G = 0.1224 z + 0.1224 ----------------- z^2 - 1.755 z + 1 Sample time: unspecified Discrete-time transfer function. >> y = impulse(G, 3) y = 0 0.1224 0.3372 0.4695
I am not sure what I am missing here. I appreciate your input.
Best Answer