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: Adding hourly data to monthly value
Replies: 1   Last Post: Aug 15, 2013 5:52 PM

Advanced Search

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

Posts: 136
Registered: 1/24/09
Adding hourly data to monthly value
Posted: Aug 15, 2013 4:25 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hi,
I have a matrix, say A = [1950 1 1 0; 1950 1 2 12; 1950 1 3 0; 1950 2 1 12; 1950 2 13; 1951 1 0; 1951 1 9; 1951 2 23; 1951 2 34...];
where 1st column is year, 2nd month, 3rd is date and 4th is value. I need to add all month values together, i.e., if i have 2nd col. value as 1, all corresponding value field will gets added. Basically i want to add all monthly values together. how i can do so? Thanks,



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.