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

Answers (2)

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 Comments

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
Yes, that's right.
Hi,I'm using this command but i got out of memory error. what shall I do?

Sign in to comment.

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

Asked:

on 3 Sep 2012

Answered:

on 14 Dec 2013

Community Treasure Hunt

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

Start Hunting!