read data of 3 dimensional matrix

5 views (last 30 days)
Poornima Posa
Poornima Posa on 18 Oct 2021
Answered: the cyclist on 18 Oct 2021
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

Accepted Answer

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

More Answers (0)





Community Treasure Hunt

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

Start Hunting!

Translated by