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 日

1 投票

bla = rand(66,100);
bla = bla(:)';
Please read the documentation on reshape

その他の回答 (1 件)

KSSV
KSSV 2016 年 9 月 27 日
編集済み: KSSV 2016 年 9 月 27 日

0 投票

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.

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

カテゴリ

ヘルプ センター および File ExchangeCreating and Concatenating Matrices についてさらに検索

質問済み:

2016 年 9 月 27 日

コメント済み:

2016 年 9 月 28 日

Community Treasure Hunt

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

Start Hunting!

Translated by