Matlab Dimpulse function documentaion not found
조회 수: 8 (최근 30일)
이전 댓글 표시
I was using the dimpulse function in one ofthe codes for digital signal processing. It is working properly. But I couldn't find the documentaion for the function. Here is my code:
n=0:10;
% impulse response of first order system
% y(n)-0.9*y(n-1)=2*x(n)
b=[2 0 0];
a=[1 -0.9 0];
y=dimpulse(b,a,length(n));
subplot(2,1,1);
stem(n,y);
xlabel('n--->');
ylabel('amplitude');
title('impulse response of first order system');
% impulse response of second order system
% y(n)+0.6*y(n-1)+0.8*y(n-2)=x(n)
b=[1 0 0];
a=[1 0.6 0.8];
y1=dimpulse(b,a,length(n));
subplot(2,1,2);
stem(n,y1);
xlabel('n---->');
ylabel('amplitude');
title('impulse response of second order system');
댓글 수: 0
답변 (2개)
John D'Errico
2025년 2월 25일
It seems dimpulse (or at least one version thereof) can be found in the control TB.
which dimpulse -all
However, given the location, my guess is it may be considered obsolete. As such, the docs for dimpulse may be missing.
And there are also at least a few universities who have written their own version of dimpulse.
But the help for dimpulse (the control TB version) can be found as:
help dimpulse
댓글 수: 0
Sam Chak
2025년 2월 25일
For your information, the current version of the impulse() function can be applied to both continuous-time and discrete-time LTI models generated using the tf(), zpk(), or ss() commands.
A = [1.6 -0.7;
1.0 0.0];
B = [0.5;
0.0];
C = [0.1 0.1];
D = 0.0;
Ts = 0.2; % sampling time
sys = ss(A, B, C, D, Ts);
impulse(sys), grid on
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Filter Analysis에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!