One command to extract all the data
Afficher commentaires plus anciens

I have data that looks like the image above. Could anyone please help me what command to use to extract all the data? I did it manually using the code below. But, I have another data that is up to val(:,:,365), so any help is greatly appreciated.
sla=ncread('cmems_obs-sl_glo_phy-ssh_my_allsat-l4-duacs-0.25deg_P1M-m_1639987960602.nc','sla');
A1=sla(:,:,1)';
A2=sla(:,:,2)';
A3=sla(:,:,3)';
A4=sla(:,:,4)';
A5=sla(:,:,5)';
A6=sla(:,:,6)';
A7=sla(:,:,7)';
A8=sla(:,:,8)';
A9=sla(:,:,9)';
A10=sla(:,:,10)';
A11=sla(:,:,11)';
A12=sla(:,:,12)';
slaData=vertcat(A1,A2,A3,A4,A5,A6,A7,A8,A9,A10,A11,A12);
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Lengths and Angles 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!