read data of 3 dimensional matrix

2 views (last 30 days)
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
size(max3)
ans = 1×2
129 135

More Answers (0)

Categories

Find more on Geographic Plots in Help Center and File Exchange

Tags

Products


Release

R2021b

Community Treasure Hunt

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

Start Hunting!