필터 지우기
필터 지우기

how to use a low pass filter on a sequence

조회 수: 2 (최근 30일)
ali alkhudri
ali alkhudri 2015년 4월 22일
편집: Jan 2018년 3월 7일
Hi I have a rr sequence contains different amplitudes .. I want to use a low pass filter do get rid of high amplitudes in the rr sequence who to do it? thanks

답변 (2개)

Mahendra
Mahendra 2018년 3월 7일
for example the simplest low pass filter is y(n) = x(n)+x(n-1); {x is the input sequence, y is the filtered sequence}
Y(1) = X(1);
Y(2:end) = X(2:end)+x(1:end-1);
  댓글 수: 1
Jan
Jan 2018년 3월 7일
At least dividing by 2 is useful.

댓글을 달려면 로그인하십시오.


Jan
Jan 2018년 3월 7일
편집: Jan 2018년 3월 7일
It depends on what the physical nature of the noise is. Maybe a Butterworth filter helps, or a Savitzky-Golay-filter, or a moving average? We cannot decide this reliably only based on the image of the signal. Do you have any further information?
y = movemean(x, 5);
y = sgolayfilt(x, 3, 15);
[b, a] = butter(3, 0.8, 'low');
y = filter(b, a, x); % or filtfilt

태그

Community Treasure Hunt

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

Start Hunting!

Translated by