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 日

0 投票

umean = squeeze(mean(u,2));

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeData Types についてさらに検索

質問済み:

2016 年 11 月 7 日

回答済み:

2016 年 11 月 7 日

Community Treasure Hunt

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

Start Hunting!

Translated by