Convert row or coloumn matrix into rowXcoloumn matrix
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Hi
I need to convert row matrix
![row_matrix.PNG](https://www.mathworks.com/matlabcentral/answers/uploaded_files/239927/row_matrix.png)
into
![changed.PNG](https://www.mathworks.com/matlabcentral/answers/uploaded_files/239928/changed.png)
How to convert like this. I am struck with logic.
0 Commenti
Risposta accettata
David K.
il 26 Set 2019
I would do it as such:
P = 1:10;
out = reshape(P,[2,5]);
out = out'; % Take transpose
1 Commento
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!