Hi! I need to rearrange a matrix A into a vector B as follow: A = [1,2;3,4;5,6] B = [1 2 3 4 5 6] What's the simplest way to do this? Thanks a lot, Knut

 採用された回答

Thorsten
Thorsten 2015 年 10 月 8 日

0 投票

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeOperating on Diagonal Matrices についてさらに検索

質問済み:

2015 年 10 月 8 日

コメント済み:

2015 年 10 月 8 日

Community Treasure Hunt

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

Start Hunting!

Translated by