Creating Vector from the following matrix

Please Given the following matrix A=[1 2 3; 4 5 6; 7 8 9], I would like to create a column vector B from A, such that B=[1;2;3;4;5;6;7;8;9]. I need this formular to compute large matrix data into a column vector. Thank you.

 採用された回答

SALAH ALRABEEI
SALAH ALRABEEI 2021 年 6 月 18 日

0 投票

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

1 件のコメント

Onovo
Onovo 2021 年 6 月 18 日
Thank you very much salah

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

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

タグ

質問済み:

2021 年 6 月 18 日

コメント済み:

2021 年 6 月 18 日

Community Treasure Hunt

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

Start Hunting!

Translated by