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: conversion of daily data to monthly
Replies: 2   Last Post: Feb 28, 2013 3:33 PM

Advanced Search

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

Posts: 3,892
Registered: 12/7/04
Re: conversion of daily data to monthly
Posted: Feb 28, 2013 3:33 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

On Friday, March 1, 2013 8:33:09 AM UTC+13, Mohammad wrote:
> Hi, I need to convert rainfall data from daily to monthly considering exact days of each month (31, 28/29, 30, 31................31). Thanks in advance for your help.

The first step, as dpb says, is to convert your dates to serial times using datenum.
Your task from here will seem impossibly difficult until you do this:
help datevec
What datevec will do is to decompose each serial date into its year, month and day. Once you have these, it is straightforward to extract the data for each month.



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.