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

 Réponse acceptée

José-Luis
José-Luis le 27 Sep 2016
Modifié(e) : José-Luis le 27 Sep 2016

1 vote

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

Plus de réponses (1)

KSSV
KSSV le 27 Sep 2016
Modifié(e) : KSSV le 27 Sep 2016

0 votes

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 commentaires

José-Luis
José-Luis le 27 Sep 2016
That would give column vector and not a row vector.
KSSV
KSSV le 28 Sep 2016
Transposing it gives a column vector.

Connectez-vous pour commenter.

Catégories

Community Treasure Hunt

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

Start Hunting!

Translated by