how to stack 2 dimensional arrays into 3 dimensional aarays?
104 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hassan Ashraf
am 28 Aug. 2019
Beantwortet: Bruno Luong
am 28 Aug. 2019
I have Nine(9) , 2-D arrays of size 3200x8.
I want to stack them into a 3D array so that I could have a final aaray of size 3200x8x9.
Please help!
2 Kommentare
Akzeptierte Antwort
Bruno Luong
am 28 Aug. 2019
If 2D arrays are stored in 9 variables
cat(3,A1,A2,A3,A4,A5,A6,A7,A8,A9);
If they are stored in 1x9 cell C
cat(3, C{:});
0 Kommentare
Weitere Antworten (1)
Siehe auch
Kategorien
Mehr zu Creating and Concatenating Matrices finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!