フィルターのクリア

How transform matrix to vector

1 回表示 (過去 30 日間)
Meriem Ben Kalia
Meriem Ben Kalia 2020 年 8 月 22 日
コメント済み: Meriem Ben Kalia 2020 年 8 月 22 日
hello everyone,
I have matrix with 6*36 elements I want to transform all the elements in vector with 108*1 (108=6*36)
example A=[1 2 3;8 9 7] will be B=[1;2;3;8;9;7 ]
and thank you very much

採用された回答

KSSV
KSSV 2020 年 8 月 22 日
A = [1 2 3 ; 8 9 7] ;
iwant = A(:)
  1 件のコメント
Meriem Ben Kalia
Meriem Ben Kalia 2020 年 8 月 22 日
thank you

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMultidimensional Arrays についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by