필터 지우기
필터 지우기

Derivative filter in laplace domain

조회 수: 1 (최근 30일)
joeDiHare
joeDiHare 2012년 4월 23일
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?

채택된 답변

Arkadiy Turevskiy
Arkadiy Turevskiy 2012년 4월 23일
You can do this using diff command.
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
  댓글 수: 1
joeDiHare
joeDiHare 2012년 4월 24일
Thanks.
This makes sense
Just wondering if there was any signal processing buil-in tool for that though.
Thanks

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Digital Filter Analysis에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by