How can I get a monthly multianual mean?

2 vues (au cours des 30 derniers jours)
Carolina Trimino
Carolina Trimino le 15 Jan 2015
Dear all,
I have a database for daily inflows of 20 years and I would like to get the monthly mean for every year. This is an example of the database.
year= [1991 1991 1991 1991 ...2014]; month =[Jan Jan Jan Jan.....Dec]; day=[01 02 03 04...31....01 02 03...30..]; inflow=[10 15 18 23.....21]
I've been trying different loops with FOR and IF but still can't make it. At the end I need a matrix of this size [#years, 12(months)]. I would really appreciate your help.
Best regards,

Réponses (0)

Catégories

En savoir plus sur Loops and Conditional Statements dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by