change array into matrix
12 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
How to write a 4 values in rectangular grid a=[8 4 6 2]
it will become
a=
8 4
6 2
0 Commenti
Risposta accettata
Mischa Kim
il 1 Feb 2014
Modificato: Mischa Kim
il 1 Feb 2014
b = reshape(a,2,2)
3 Commenti
Mischa Kim
il 1 Feb 2014
Is this another question or are you confirming that the command does what you need it to do?
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Matrices and Arrays in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!