how to use Butterworth filter to get rid of noise?
2 ビュー (過去 30 日間)
古いコメントを表示
I cannot figure out how to use a lowpass butterworth filter on this piece of data.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/196033/image.png)
Here is what I have so far
Ts = mean(diff(x));
Fs = 1/Ts;
Fn = Fs/2;
I found the sample rate to find Wn, however I do not know what to set the cutoff value.
Wn1=10/(Fn);
[b,a] = butter(6,Wn1,'low');
y2 = filter(b,a,y_pr);
unfortunately this would distort the data and make most peaks the same height
1 件のコメント
Star Strider
2018 年 9 月 17 日
Ahmed Emam later added:
‘... my code is also required to handle a sampling rate varying from 0.5 kHz to 2 kHz. I wanted to use the lowpass option in the butterworth filter. The output I am looking for is the same EKG graph but with less noise.’
This is not a trivial omission.
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Filter Analysis についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!