<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/171422</link>
    <title>MATLAB Central Newsreader - averaging data series</title>
    <description>Feed for thread: averaging data series</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, 23 Jun 2008 18:33:02 -0400</pubDate>
      <title>averaging data series</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/171422#439139</link>
      <author>Ben </author>
      <description>I have a quick question.  &lt;br&gt;
&lt;br&gt;
I have data listed in 10 minute intervals and I was&lt;br&gt;
wondering how to average it, so that the data is now in 30&lt;br&gt;
minute intervals.  The data is already in a .mat file.  I&lt;br&gt;
need to transform it into a different average.  There is&lt;br&gt;
about 10 years worth of data so I can't do it individually&lt;br&gt;
or using vector indexing.&lt;br&gt;
&lt;br&gt;
Thanks.</description>
    </item>
    <item>
      <pubDate>Mon, 23 Jun 2008 18:35:54 -0400</pubDate>
      <title>Re: averaging data series</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/171422#439142</link>
      <author>roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)</author>
      <description>In article &amp;lt;g3oq8u$c88$1@fred.mathworks.com&amp;gt;, Ben  &amp;lt;bburrou2@uiuc.edu&amp;gt; wrote:&lt;br&gt;
&lt;br&gt;
&amp;gt;I have data listed in 10 minute intervals and I was&lt;br&gt;
&amp;gt;wondering how to average it, so that the data is now in 30&lt;br&gt;
&amp;gt;minute intervals.&lt;br&gt;
&lt;br&gt;
decimate() would sound appropriate.&lt;br&gt;
-- &lt;br&gt;
&amp;nbsp;&amp;nbsp;&quot;Beauty, like all other qualities presented to human experience,&lt;br&gt;
&amp;nbsp;&amp;nbsp;is relative; and the definition of it becomes unmeaning and&lt;br&gt;
&amp;nbsp;&amp;nbsp;useless in proportion to its abstractness.&quot; -- Walter Pater</description>
    </item>
    <item>
      <pubDate>Tue, 22 Jul 2008 21:51:58 -0400</pubDate>
      <title>Re: averaging data series</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/171422#444753</link>
      <author>AMK</author>
      <description>This looks like a convenient function, but I am unable to make it work.&lt;br&gt;
&lt;br&gt;
&amp;gt;&amp;gt; y = decimate(data(:,1),2)&lt;br&gt;
??? Undefined function or method 'decimate' for input arguments of type 'double'.&lt;br&gt;
&lt;br&gt;
Where data(:,1) = dt = datenum(y1(:,3), y1(:,4), y1(:,5), y1(:,6), y1(:,7), 0) are 1 hour data.&lt;br&gt;
&lt;br&gt;
Does this run from the base matlab command prompt?</description>
    </item>
    <item>
      <pubDate>Tue, 22 Jul 2008 23:04:25 -0400</pubDate>
      <title>Re: averaging data series</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/171422#444758</link>
      <author>roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)</author>
      <description>In article &amp;lt;26631652.1216763549409.JavaMail.jakarta@nitrogen.mathforum.org&amp;gt;,&lt;br&gt;
AMK  &amp;lt;kennaster@gmail.com&amp;gt; wrote:&lt;br&gt;
&amp;gt;This looks like a convenient function, but I am unable to make it work.&lt;br&gt;
&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt; y = decimate(data(:,1),2)&lt;br&gt;
&amp;gt;??? Undefined function or method 'decimate' for input arguments of type 'double'.&lt;br&gt;
&lt;br&gt;
Sorry, it appears to be part of the signal processing toolbox.&lt;br&gt;
-- &lt;br&gt;
&amp;nbsp;&amp;nbsp;&quot;You can't hit what you can't see.&quot;  -- Walter &quot;The Big Train&quot; Johnson</description>
    </item>
    <item>
      <pubDate>Wed, 23 Jul 2008 00:32:02 -0400</pubDate>
      <title>Re: averaging data series</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/171422#444770</link>
      <author>Roger Stafford</author>
      <description>&quot;Ben &quot; &amp;lt;bburrou2@uiuc.edu&amp;gt; wrote in message &amp;lt;g3oq8u$c88&lt;br&gt;
$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; I have a quick question.  &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I have data listed in 10 minute intervals and I was&lt;br&gt;
&amp;gt; wondering how to average it, so that the data is now in 30&lt;br&gt;
&amp;gt; minute intervals.  The data is already in a .mat file.  I&lt;br&gt;
&amp;gt; need to transform it into a different average.  There is&lt;br&gt;
&amp;gt; about 10 years worth of data so I can't do it individually&lt;br&gt;
&amp;gt; or using vector indexing.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Thanks.&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;If the number of successive 10-minute entries is a multiple of three, you can &lt;br&gt;
do the following.  Let x be a column vector of the data.&lt;br&gt;
&lt;br&gt;
&amp;nbsp;x2 = mean(reshape(x,[],3),2);&lt;br&gt;
&lt;br&gt;
Now x2 is a column vector of one third as many 30-minute averages.&lt;br&gt;
&lt;br&gt;
Roger Stafford</description>
    </item>
    <item>
      <pubDate>Wed, 23 Jul 2008 01:31:25 -0400</pubDate>
      <title>Re: averaging data series</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/171422#444773</link>
      <author>AMK</author>
      <description>My data aren't in that format.  In fact, I have 1 minute and fifteen minute data that need to be aggregated into 30 minute averages.  It seems like this might be better accomplished outside of Matlab and then brought in?</description>
    </item>
  </channel>
</rss>

