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!