how to apply 200-ms median filter in Matlab

Hi, Can anyone help me to explain what is meant by applying 200-ms median filter on ECG Signal. Basically this is a technique to remove baseline drift from ECG Signals.I need to do this in Matlab. Appreciate quick response

Réponses (2)

Image Analyst
Image Analyst le 3 Sep 2012
I believe it's called medfilt1() and it's in the Signal Processing Toolbox. You just have to know how many elements correspond to 200 ms. How many is it? Let's say it's 15 elements, then you just do
filteredSignal = medfilt1(signal, 15);

3 commentaires

Usman
Usman le 3 Sep 2012
Hi, Thanks for such a swift response :) so what you mean to say is that if my signal is sampled at 500 HZ, so 200ms would correspond to 500*.2=100 samples. Right? so I need to do.
filteredSignal = medfilt1(signal, 100);
Please do correct me if i am wrong in this
Image Analyst
Image Analyst le 3 Sep 2012
Yes, that's right.
sanaz
sanaz le 3 Juin 2013
Hi,I'm using this command but i got out of memory error. what shall I do?

Connectez-vous pour commenter.

TONY SINGLA
TONY SINGLA le 14 Déc 2013

0 votes

how to check what is the frequency and time span of the ECG signal and how to calculate the sample rate?

Community Treasure Hunt

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

Start Hunting!

Translated by