フィルターのクリア

how i reshape data matrix?

1 回表示 (過去 30 日間)
yasmeen hadadd
yasmeen hadadd 2016 年 9 月 27 日
コメント済み: KSSV 2016 年 9 月 28 日
Hello;
h have a matrix with size 66x100 how i change it's size to 1x6600
thanks

採用された回答

José-Luis
José-Luis 2016 年 9 月 27 日
編集済み: José-Luis 2016 年 9 月 27 日
bla = rand(66,100);
bla = bla(:)';
Please read the documentation on reshape

その他の回答 (1 件)

KSSV
KSSV 2016 年 9 月 27 日
編集済み: KSSV 2016 年 9 月 27 日
A = rand(66,100) ;
A = A(:) ; % joins column by column
% if you want row by row
A = rand(66,100) ;
A = A' ;
A = A(:) ;
  2 件のコメント
José-Luis
José-Luis 2016 年 9 月 27 日
That would give column vector and not a row vector.
KSSV
KSSV 2016 年 9 月 28 日
Transposing it gives a column vector.

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

カテゴリ

Help Center および File ExchangeCreating and Concatenating Matrices についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by