Adding years to matrix
1 view (last 30 days)
I am newbie on matlab, I have a dataset for precipitation with a grid of 0.5 spacing x=141, y=71 and t=38. I calculated the average using the following code, But I will like to add the years 1:38 to be able to identify the values with their respective dates. Can I add the dates at this step or should I do it to the original dataset attached?
Thanks in advance for your help.
meanprecip = nanmean(rain(141,71,38));