convert a 2D matrix into 3D matrix
Afficher commentaires plus anciens
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 commentaire
Dwight
le 5 Jan 2012
Réponse acceptée
Plus de réponses (1)
Walter Roberson
le 4 Jan 2012
Please try
B = permute(reshape(A, 6, [], 3),[2 1 3]);
1 commentaire
Dwight
le 5 Jan 2012
Catégories
En savoir plus sur Logical dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!