How can I get a monthly multianual mean?

2 次查看(过去 30 天)
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,

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Loops and Conditional Statements 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by