Mean for 4D

1 回表示 (過去 30 日間)
Sophia
Sophia 2016 年 11 月 7 日
回答済み: James Tursa 2016 年 11 月 7 日
I have a .mat file. The dimensions for u and v are 9 (years) x 7 (months) x 119 x 177
How can i take the mean over each year?? How to handle the 4D data? The result should 9(year)*119*117
load('ice_drift_2006_2015_winter.mat', 'long1', 'lat1', 'u', 'v', 'flag')

採用された回答

James Tursa
James Tursa 2016 年 11 月 7 日
umean = squeeze(mean(u,2));

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeData Types についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by