Borrar filtros
Borrar filtros

How to properly transpose a matrix

5 visualizaciones (últimos 30 días)
Brandon Bush
Brandon Bush el 6 de Jul. de 2018
Editada: Stephen23 el 6 de Jul. de 2018
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?

Respuesta aceptada

Stephen23
Stephen23 el 6 de Jul. de 2018
Editada: Stephen23 el 6 de Jul. de 2018
Regardless of the input size, this will give a column vector:
Array = Array(:)

Más respuestas (0)

Categorías

Más información sobre Matrices and Arrays en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by