Average for 4d data
7 views (last 30 days)
Show older comments
Nurul Ain Basirah Zakaria
on 6 Nov 2020
Commented: Ameer Hamza
on 8 Nov 2020
Hi! How can I calculate the average for a 160x140x1x12 which are lat,lon,year and month. I want to calculate the average of month for one year.
0 Comments
Accepted Answer
Ameer Hamza
on 6 Nov 2020
You can specify the dimension to the mean() function
M = rand(160,140,1,12);
M_new = mean(M, 4)
6 Comments
More Answers (0)
See Also
Categories
Find more on Annotations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!