convert a 2D matrix into 3D matrix
Mostrar comentarios más antiguos
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 comentario
Dwight
el 5 de En. de 2012
Respuesta aceptada
Más respuestas (1)
Walter Roberson
el 4 de En. de 2012
Please try
B = permute(reshape(A, 6, [], 3),[2 1 3]);
1 comentario
Dwight
el 5 de En. de 2012
Categorías
Más información sobre Logical en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!