Average for 4d data
9 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
Ameer Hamza
2020-11-6
You can specify the dimension to the mean() function
M = rand(160,140,1,12);
M_new = mean(M, 4)
6 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Annotations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!