zero phase filter in simulink
8 ビュー (過去 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.![2019-01-24 09_28_13-lowpass_test _ use.png](https://www.mathworks.com/matlabcentral/answers/uploaded_files/201329/2019-01-24%2009_28_13-lowpass_test%20_%20use.png)
![2019-01-24 09_28_13-lowpass_test _ use.png](https://www.mathworks.com/matlabcentral/answers/uploaded_files/201329/2019-01-24%2009_28_13-lowpass_test%20_%20use.png)
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!