how i reshape data matrix?

Hello;
h have a matrix with size 66x100 how i change it's size to 1x6600
thanks

 Accepted Answer

José-Luis
José-Luis on 27 Sep 2016
Edited: José-Luis on 27 Sep 2016
bla = rand(66,100);
bla = bla(:)';
Please read the documentation on reshape

More Answers (1)

KSSV
KSSV on 27 Sep 2016
Edited: KSSV on 27 Sep 2016
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 Comments

That would give column vector and not a row vector.
Transposing it gives a column vector.

Sign in to comment.

Categories

Asked:

on 27 Sep 2016

Commented:

on 28 Sep 2016

Community Treasure Hunt

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

Start Hunting!