Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: Data Conversion
Replies: 3   Last Post: May 21, 2013 3:50 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Garba

Posts: 2
Registered: 5/21/13
Re: Data Conversion
Posted: May 21, 2013 7:51 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

TideMan <mulgor@gmail.com> wrote in message <9dbad8fa-0ebf-4846-8bea-3b3ba71eb91a@googlegroups.com>...
> On Tuesday, May 21, 2013 10:08:09 PM UTC+12, Garba wrote:
> > I have a data set, a daily degree data (366 data points) that I want to convert to hourly values (24*366 = 8784 data points). The raw data obtained are averaged hourly values. So I want to reconvert to the hourly values by generating random hourly values that will represent the daily average values. Any hint on a MATLAB script that will do this?
>
> You need to specify both the distribution and the scale parameter.
> e.g., normal distribution with standard deviation of x.
>
> Then you would do this:
> y=ybar*ones(1,24) + x*randn(366,24);
> y=y(:);
> where ybar is a column vector (366 x 1) of daily means.

Thanks very much it works, but when I average the 24 hourly values they dont equal the daily value



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.