How do I pass the signal through a low-pass FIR filter?
3 ビュー (過去 30 日間)
古いコメントを表示
I have a string called the signal. I want to pass it through a low pass FIR filter very close to this signed ideal. How can I do it?
signal=1x732
signal=[-0.0029, 0.0117, 0.0068, ...,0.4467, 0.5054]
0 件のコメント
回答 (1 件)
Star Strider
2021 年 4 月 28 日
if ‘h’ are the numerator vector of the filter (and the filter is designed correctly) —
signal_filtered = filtfilt(h, 1, signal);
That should work.
2 件のコメント
Star Strider
2021 年 4 月 29 日
In this example, ‘h’ is a vector of coefficients returned by the funciton that designs the FIR filter (or that you calculate). How you design the filter is your choice, depeding on your reqquirements.
参考
カテゴリ
Help Center および File Exchange で Filter Design についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!