How to reshape a matrix
Mostra commenti meno recenti
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?
Risposta accettata
Più risposte (1)
A = rand(2,2,2,2);
B = A(:);
size(B)
Categorie
Scopri di più su Creating and Concatenating Matrices 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!