how to use Butterworth filter to get rid of noise?

조회 수: 18 (최근 30일)
Ahmed Emam
Ahmed Emam 2018년 9월 17일
댓글: Star Strider 2018년 9월 17일
I cannot figure out how to use a lowpass butterworth filter on this piece of data.
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
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 CenterFile Exchange에서 Filter Analysis에 대해 자세히 알아보기

제품


릴리스

R2018a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by