Hi,
I have runoff data (27,23,360) where the 3rd dimension represents 'months'. I want to find the average runoff for each year. I used the following code to find the average runoff for the first year: a = mean(RUNOFF(:,:,[1:12]),3);
Now I want to use a for loop to show the average runoff for each year so that the output will look like this (27,23,30). I have never used a for loop before so I could use some advice.
Thank you, ruben
Best Answer