Make 3 dimensional matrix
Afficher commentaires plus anciens
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

Réponse acceptée
Plus de réponses (1)
KSSV
le 22 Nov 2022
[r,c] = size(val);
nlay = 10 ;
iwant = permute(reshape(val',[c,r/nlay,nlay]),[2,1,3]);
Catégories
En savoir plus sur MATLAB dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!