I need to manipulate this matrix

A=[10 20 30 40;50 60 70 80;90 100 110 120]
%I need to order each rows vertically like that;
B=[10;20;30;40;50;60;70;80;90;100;110;120]

 採用された回答

José-Luis
José-Luis 2014 年 5 月 8 日
編集済み: José-Luis 2014 年 5 月 8 日

0 投票

B = reshape(A',1,[]);
Alternatively:
B = A';
B = B(:);

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeAerospace Blockset についてさらに検索

質問済み:

2014 年 5 月 8 日

編集済み:

2014 年 5 月 8 日

Community Treasure Hunt

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

Start Hunting!

Translated by