Mean for 4D

조회 수: 2 (최근 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 CenterFile Exchange에서 Data Types에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by