Creating Vector from the following matrix

1 回表示 (過去 30 日間)
Onovo
Onovo 2021 年 6 月 18 日
コメント済み: Onovo 2021 年 6 月 18 日
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 日
B = reshape(A',1,[]);
  1 件のコメント
Onovo
Onovo 2021 年 6 月 18 日
Thank you very much salah

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGet Started with MATLAB についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by