how i reshape data matrix?

1 Ansicht (letzte 30 Tage)
yasmeen hadadd
yasmeen hadadd am 27 Sep. 2016
Kommentiert: KSSV am 28 Sep. 2016
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
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
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 Creating and Concatenating Matrices finden Sie in Help 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