Convert row or coloumn matrix into rowXcoloumn matrix

1 回表示 (過去 30 日間)
kamal
kamal 2019 年 9 月 26 日
コメント済み: KALYAN ACHARJYA 2019 年 9 月 26 日
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 Center および File ExchangeMatrix Indexing についてさらに検索

製品


リリース

R2014b

Community Treasure Hunt

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

Start Hunting!

Translated by