Convert row or coloumn matrix into rowXcoloumn matrix

1 visualización (últimos 30 días)
kamal
kamal el 26 de Sept. de 2019
Comentada: KALYAN ACHARJYA el 26 de Sept. de 2019
Hi
I need to convert row matrix
row_matrix.PNG
into
changed.PNG
How to convert like this. I am struck with logic.

Respuesta aceptada

David K.
David K. el 26 de Sept. de 2019
I would do it as such:
P = 1:10;
out = reshape(P,[2,5]);
out = out'; % Take transpose

Más respuestas (0)

Categorías

Más información sobre Matrix Indexing en Help Center y File Exchange.

Productos


Versión

R2014b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by