<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/236367</link>
    <title>MATLAB Central Newsreader - doubt about filtering</title>
    <description>Feed for thread: doubt about filtering</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Mon, 22 Sep 2008 20:36:03 -0400</pubDate>
      <title>doubt about filtering</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/236367#601479</link>
      <author>Mario </author>
      <description>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:&lt;br&gt;
&lt;a href=&quot;http://www.geocities.com/mariopwr/data317.jpg&quot;&gt;http://www.geocities.com/mariopwr/data317.jpg&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;http://www.geocities.com/mariopwr/data740.jpg&quot;&gt;http://www.geocities.com/mariopwr/data740.jpg&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;http://www.geocities.com/mariopwr/data5044.jpg&quot;&gt;http://www.geocities.com/mariopwr/data5044.jpg&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://www.geocities.com/mariopwr/Archive.zip&quot;&gt;http://www.geocities.com/mariopwr/Archive.zip&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
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.&lt;br&gt;
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&lt;br&gt;
&amp;nbsp;&lt;br&gt;
[b,a] = butter(1, 0.13,'low'); % N,Wn&lt;br&gt;
Y = filtfilt(b,a,Y);&lt;br&gt;
&lt;a href=&quot;http://www.geocities.com/mariopwr/data317F.jpg&quot;&gt;http://www.geocities.com/mariopwr/data317F.jpg&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
[b,a] = butter(1, 0.17,'low'); % N,Wn&lt;br&gt;
Y = filtfilt(b,a,Y);&lt;br&gt;
&lt;a href=&quot;http://www.geocities.com/mariopwr/data740F.jpg&quot;&gt;http://www.geocities.com/mariopwr/data740F.jpg&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
[b,a] = butter(1, 0.11,'low'); % N,Wn&lt;br&gt;
Y = filtfilt(b,a,Y);&lt;br&gt;
&lt;a href=&quot;http://www.geocities.com/mariopwr/data5044F.jpg&quot;&gt;http://www.geocities.com/mariopwr/data5044F.jpg&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
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. &lt;br&gt;
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..&lt;br&gt;
&lt;br&gt;
I hope you get my problem and can help me! Thank you.&lt;br&gt;
Regards,&lt;br&gt;
&lt;br&gt;
Mario</description>
    </item>
  </channel>
</rss>

