read data of 3 dimensional matrix

조회 수: 2 (최근 30일)
Poornima Posa
Poornima Posa 2021년 10월 18일
답변: the cyclist 2021년 10월 18일
i have a .nc file consisting of a 3 dimensional matrix containing latitude, longitute and time(in days) of size (129, 135, 365). i want maximum value in 3rd dimension for each lat, long. please help to write the code

채택된 답변

the cyclist
the cyclist 2021년 10월 18일
% Some pretend data
data = rand(129, 135, 365);
% Max along 3rd dimension
max3 = max(data,[],3);
% Display size of max3
size(max3)
ans = 1×2
129 135

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Geographic Plots에 대해 자세히 알아보기

태그

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by