Thread Subject: doubt about filtering

Subject: doubt about filtering

From: Mario

Date: 22 Sep, 2008 20:36:03

Message: 1 of 1

I'm trying to analyze some data but I need to filter it before. Here a few examples of the data I'm working on:
http://www.geocities.com/mariopwr/data317.jpg
http://www.geocities.com/mariopwr/data740.jpg
http://www.geocities.com/mariopwr/data5044.jpg

http://www.geocities.com/mariopwr/Archive.zip


I'd like to fit a spline and then analyze it but i don't know which is the best way to approximate my data.
I tried to filter it but every time i have to change a few parameters if i want to get a good approximation. Here some examples of data filtering (I used a butter filter because I don't have any idea about what is best for me) and spline fitting
 
[b,a] = butter(1, 0.13,'low'); % N,Wn
Y = filtfilt(b,a,Y);
http://www.geocities.com/mariopwr/data317F.jpg

[b,a] = butter(1, 0.17,'low'); % N,Wn
Y = filtfilt(b,a,Y);
http://www.geocities.com/mariopwr/data740F.jpg

[b,a] = butter(1, 0.11,'low'); % N,Wn
Y = filtfilt(b,a,Y);
http://www.geocities.com/mariopwr/data5044F.jpg


I'm wondering if there is a way to automatically get a good approximation of my data or if there is a better way to filter than the one i used.
What i'd want to do with my data is measuring the peak-to-peak distance and comparing curve slope after and before every peak so i'd like to have a filter function that keeps the high peaks and filter the noise outside these..

I hope you get my problem and can help me! Thank you.
Regards,

Mario

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
filter spline Mario 22 Sep, 2008 16:40:25
rssFeed for this Thread

Contact us at files@mathworks.com