Reshape a 2D matrix to a 3D matrix
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I have a (25 x 53515) matrix
I like to reshape it to 25 X 1 in the 2D domain so it will have 53515 layers in the 3D domain, thus forming a 25 x 1 x 53515 matrix.
How should I go about doing this?
0 Kommentare
Antworten (1)
Andrei Bobrov
am 13 Jan. 2015
reshape(yourarray,size(yourarray,1),1,[]);
other way
permute(yourarray,[1 3 2]);
0 Kommentare
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!