change array into matrix
5 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
How to write a 4 values in rectangular grid a=[8 4 6 2]
it will become
a=
8 4
6 2
0 commentaires
Réponse acceptée
Mischa Kim
le 1 Fév 2014
Modifié(e) : Mischa Kim
le 1 Fév 2014
b = reshape(a,2,2)
3 commentaires
Mischa Kim
le 1 Fév 2014
Is this another question or are you confirming that the command does what you need it to do?
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Creating and Concatenating Matrices dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!