How to reshape a matrix
Afficher commentaires plus anciens
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?
Réponse acceptée
Plus de réponses (1)
A = rand(2,2,2,2);
B = A(:);
size(B)
Catégories
En savoir plus sur Creating and Concatenating Matrices 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!