Changing the Structure of a Matrix.

8 Ansichten (letzte 30 Tage)
Jack
Jack am 19 Mär. 2015
Beantwortet: Sean de Wolski am 19 Mär. 2015
Hi,
If I have a matrix of lets say [4x3] i.e
1 2 3
4 5 6
7 8 9
10 11 12
how can I change this to a [12x1] matrix i.e
1 2 3 4 5 6 7 8 9 10 11 12
Thanks.

Akzeptierte Antwort

Sean de Wolski
Sean de Wolski am 19 Mär. 2015
y = reshape(x.',1,[])

Weitere Antworten (0)

Kategorien

Mehr zu Multidimensional Arrays 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