Thread Subject: signal noise filtering

Subject: signal noise filtering

From: rubionelove

Date: 18 Jun, 2009 11:17:01

Message: 1 of 5

Dear all,
How can I filter a signal discarding noise-like values.
for example:

x= [10 10 10 200 10 10 10 ]

I would like the 200 become a 10 after filtering

doing the average I obtain something like
x=[40 40 40 40 40 40 40 ]

and doing the running average (window=3) something like
x=[10 10 76 76 76 40 40 ]

increasing too much the size of the window is deestroing all other changes in the signal in which I'm interested

Subject: signal noise filtering

From: Sprinceana

Date: 18 Jun, 2009 11:31:01

Message: 2 of 5

"rubionelove " <rubionelove@gmail.com> wrote in message <h1d7nd$1oj$1@fred.mathworks.com>...
> Dear all,
> How can I filter a signal discarding noise-like values.
> for example:
>
> x= [10 10 10 200 10 10 10 ]
>
> I would like the 200 become a 10 after filtering
>
> doing the average I obtain something like
> x=[40 40 40 40 40 40 40 ]
>
> and doing the running average (window=3) something like
> x=[10 10 76 76 76 40 40 ]
>
> increasing too much the size of the window is deestroing all other changes in the signal in which I'm interested

Can you tell us how you define you signal in matlab?

What signal are you going to filter?

Give details pls!

Subject: signal noise filtering

From: Sprinceana

Date: 18 Jun, 2009 11:35:03

Message: 3 of 5

"rubionelove " <rubionelove@gmail.com> wrote in message <h1d7nd$1oj$1@fred.mathworks.com>...
> Dear all,
> How can I filter a signal discarding noise-like values.
> for example:
>
> x= [10 10 10 200 10 10 10 ]
>
> I would like the 200 become a 10 after filtering
>
> doing the average I obtain something like
> x=[40 40 40 40 40 40 40 ]
>
> and doing the running average (window=3) something like
> x=[10 10 76 76 76 40 40 ]
>
> increasing too much the size of the window is deestroing all other changes in the signal in which I'm interested

What window do you have for your signal a hamming window?

I wait your response pls!

Subject: signal noise filtering

From: Dave Robinson

Date: 18 Jun, 2009 12:00:05

Message: 4 of 5

"rubionelove " <rubionelove@gmail.com> wrote in message <h1d7nd$1oj$1@fred.mathworks.com>...
> Dear all,
> How can I filter a signal discarding noise-like values.
> for example:
>
> x= [10 10 10 200 10 10 10 ]
>
> I would like the 200 become a 10 after filtering
>
> doing the average I obtain something like
> x=[40 40 40 40 40 40 40 ]
>
> and doing the running average (window=3) something like
> x=[10 10 76 76 76 40 40 ]
>
> increasing too much the size of the window is deestroing all other changes in the signal in which I'm interested

If you have the Signal Processing Toolbox then

help medfilt1

is a good place to start. It is designed specifically to deal with exactly the problem that you have illustrated.

Regards

Dave Robinson

Subject: signal noise filtering

From: rubionelove

Date: 18 Jun, 2009 13:38:05

Message: 5 of 5

thank you Dave, medfilt1 was really useful !
have a nice day

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
running average rubionelove 18 Jun, 2009 07:19:04
filtering rubionelove 18 Jun, 2009 07:19:04
noise rubionelove 18 Jun, 2009 07:19:04
rssFeed for this Thread

Contact us at files@mathworks.com