I have a 1x31 vector array that I would like to transpose into a 31x1 vector. I set:
Array = Array';
However, every time I run the program, it switches between a row vector and a column vector. How can I get it to stay a column vector?

 Akzeptierte Antwort

Stephen23
Stephen23 am 6 Jul. 2018
Bearbeitet: Stephen23 am 6 Jul. 2018

1 Stimme

Regardless of the input size, this will give a column vector:
Array = Array(:)

Weitere Antworten (0)

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