zero phase filter in simulink
조회 수: 17 (최근 30일)
이전 댓글 표시
I am trying to run a zero phase low pass filter in Simulink in MATLAB however I can't find a zero phase filter block. The function filtfilt() works however when i use a self defined function block in Simulink with the same code that works in MATLAB it doesn't seem to work in Simulink. I have attached an image of the Simulink model and the code itself.
function y = test_lp(u)
Wn = 0.01*5;
[b,a] = butter( 3, Wn, 'low');
data=u(:,2);
y= filtfilt(b,a,u(:,2));
%y=filtfilt(b,a,u);
end
댓글 수: 0
답변 (2개)
Sameer Gadekar
2019년 4월 11일
Any filter will introduce and has to introduce delay in the output else filter will become instable it wll become non causal.
댓글 수: 0
Rafael Cordero
2020년 6월 17일
Im having the same problem. Did you ever figure out how to fix this?
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Filter Design and Analysis에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!