convert a 2D matrix into 3D matrix
Mostra commenti meno recenti
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 Commento
Dwight
il 5 Gen 2012
Risposta accettata
Più risposte (1)
Walter Roberson
il 4 Gen 2012
Please try
B = permute(reshape(A, 6, [], 3),[2 1 3]);
1 Commento
Dwight
il 5 Gen 2012
Categorie
Scopri di più su Logical in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!