Convert row or coloumn matrix into rowXcoloumn matrix

1 次查看(过去 30 天)
Hi
I need to convert row matrix
row_matrix.PNG
into
changed.PNG
How to convert like this. I am struck with logic.

采纳的回答

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

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Matrices and Arrays 的更多信息

产品


版本

R2014b

Community Treasure Hunt

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

Start Hunting!

Translated by