Matlab Dimpulse function documentaion not found
7 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (2)
John D'Errico
am 25 Feb. 2025
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 Kommentare
Sam Chak
am 25 Feb. 2025
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 Kommentare
Siehe auch
Kategorien
Mehr zu Filter Analysis finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

