Discrete low-pass filter

조회 수: 4 (최근 30일)
lionel messi
lionel messi 2021년 1월 8일
댓글: lionel messi 2021년 1월 11일
Hi community!
I have created a Matlab function block. Then I have set its sample time equal to "Ts" (100e-6). After that I implemented a simple low-pass filter code using this block, the results are different from when I build the filter using the "1/s" and "gain" blocks of Simulink. The transfer function of the filter is:
Y/X=1/(1+sTc)
I have implemented it by applying the backward Euler discretizing method as :
Y(k)=(Ts/(Ts+Tc))X(k)+(Tc/(Tc+Ts))Y(k-1)
where X is a sinusoidal function given from outside of the Matlab function block.
Is it something wrong here?
Regards,
  댓글 수: 2
Mathieu NOE
Mathieu NOE 2021년 1월 8일
hi
you can use c2dm to discretize analog filters
also se attached some typical digital filters implementation
lionel messi
lionel messi 2021년 1월 11일
Thank you for the reply and the files!
I'm gonna try these..
Regards

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

답변 (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