Creating a 3D array from multiple 2D arrays
Ältere Kommentare anzeigen
How can I create a 3D matrix from 124 slices of 2D 256 x 256 matrices? I want to combine these to form a 256 x 256 x 124 matrix. How do I do this using a loop? Thanks!!
3 Kommentare
Alexandra Harkai
am 14 Feb. 2017
What do you mean by 'slices'? How did you obtain the 124 'slices'?
George Rawlinson
am 14 Feb. 2017
@George Rawlinson: load your data into one cell array, or simply preallocate the whole ND array and load directly into that, as this forum and the documentation already explain:
Do not load into lots of variables in the workspace, because this makes accessing them slow and buggy:
Antworten (0)
Kategorien
Mehr zu Matrix Indexing finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!