Matlab Dimpulse function documentaion not found
17 ビュー (過去 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!