Derivative filter in laplace domain
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I am trying to implement the simplest derivative filter, e.g.: H(s)=s, as:
H=tf([1 0],[1]);
output=lsim( H , input);
However, the expected error is that lsim "Cannot simulate the time response of models with more zeros than poles".
So, how do I implement it in Matlab?
0 Kommentare
Akzeptierte Antwort
Arkadiy Turevskiy
am 23 Apr. 2012
t=[0:0.01:10];
u=sin(t);
y=diff(u)./diff(t);
plot(t,u)
hold on
plot(t(2:end),y,'r')
HTH.
Arkadiy
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Filter Design 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!