Impulse Response using Dirac(t)
显示 更早的评论
Consider the following code segment used to generate the step response
syms y t
y=dsolve('D2y+5*Dy+6*y=heaviside(t)','y(0)=0','Dy(0)=0','t');
Now, the impulse response can be determined (and plotted) using
ir = diff(y);
subplot(211)
ezplot(ir,[0,5]);
title('Impulse response from Step reponse');
However, when I try to find (and plot) the impulse response using the following code, it gives the same shape as before, but with (almost) half the magnitude.
x=dsolve('D2y+5*Dy+6*y=dirac(t)','y(0)=0','Dy(0)=0','t');
subplot(212)
ezplot(x,[0,5]);
title('Impulse response From dirac')
Although I personally think that the answer must be the same, can anyone explain why it isn't the case??
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Code Performance 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!