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

 Akzeptierte Antwort

José-Luis
José-Luis am 27 Sep. 2016
Bearbeitet: José-Luis am 27 Sep. 2016

1 Stimme

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

Weitere Antworten (1)

KSSV
KSSV am 27 Sep. 2016
Bearbeitet: KSSV am 27 Sep. 2016

0 Stimmen

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 Kommentare

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

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Matrices and Arrays finden Sie in Hilfe-Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by