convert a 2D matrix into 3D matrix
Ältere Kommentare anzeigen
Can anyone help me with making a 2D matrix into a 3D matrix?
I have a (105504 x 3) 2d matrix and I need to make a 3D matrix of dimensions (6 x 3 x 17584) I need to take (6 x 3) consecutive matrices by row for 17584 layers.
Can anyone help me with this? I really appreciate any help
1 Kommentar
Dwight
am 5 Jan. 2012
Akzeptierte Antwort
Weitere Antworten (1)
Walter Roberson
am 4 Jan. 2012
Please try
B = permute(reshape(A, 6, [], 3),[2 1 3]);
1 Kommentar
Dwight
am 5 Jan. 2012
Kategorien
Mehr zu Logical 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!