How to reshape a matrix
Mostrar comentarios más antiguos
Hello , i've got a k by l by m by n by o matrix and i want to reshape it into a vector.. Any ideas?
Respuesta aceptada
Más respuestas (1)
A = rand(2,2,2,2);
B = A(:);
size(B)
Categorías
Más información sobre Creating and Concatenating Matrices 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!