Clear Filters
Clear Filters

How to merger files consists of 2D matrix into 3D matrix

1 view (last 30 days)
I have already download daily data from Global Ocean Gridded L 4 Sea Surface Heights And Derived Variables Reprocessed Copernicus Climate Service. The daily data in December 2022 downloaded from this link ( Actually I want merger all data in a file Dec2022. The size matrix data from 1440x720x1 become 1440x720x31. From data I can calculate mean monthly data from daily. The same logic finally I can merger data monthly on 2022 with a size matrix 1440x720x12 (jan to dec).
Thank you

Answers (1)

Cris LaPierre
Cris LaPierre on 2 Apr 2024
Load each file indiviudally, extract the variable you want, and use the cat function to concatenate each one along the 3rd dimension.


Find more on Weather and Atmospheric Science 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!