Convert row or coloumn matrix into rowXcoloumn matrix
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
kamal
am 26 Sep. 2019
Kommentiert: KALYAN ACHARJYA
am 26 Sep. 2019
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 Kommentare
Akzeptierte Antwort
David K.
am 26 Sep. 2019
I would do it as such:
P = 1:10;
out = reshape(P,[2,5]);
out = out'; % Take transpose
1 Kommentar
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Matrices and Arrays finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!