Make 3 dimensional matrix
Show older comments
Hi, I attached mathworks data including 3 variables Lat,Lon,val.
I want to make 3 dimensional matrix like below. (LatXLonXval)=(9X11X10) maybe
Can you help me? I can't understand well about making matrix

Accepted Answer
More Answers (1)
KSSV
on 22 Nov 2022
[r,c] = size(val);
nlay = 10 ;
iwant = permute(reshape(val',[c,r/nlay,nlay]),[2,1,3]);
Categories
Find more on MATLAB in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!