I have a variable which is <1X1000>.. how can i convert it to <1000x1> ?

My problem is, i have to change all the columns to rows, i am new to matlab, can somebody please help!

 Respuesta aceptada

See the documentation for transpose - give the command
doc transpose
or
help transpose

3 comentarios

Stephen23
Stephen23 el 27 de En. de 2015
Editada: Stephen23 el 27 de En. de 2015
If the variable A is a large horizontal vector, then A(:) might be faster than transpose.
Not on my system (R2014b under Windows), Stephen. Both take negligible time compared to whatever else the program might be doing.
Fair enough :)

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Entering Commands en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 27 de En. de 2015

Comentada:

el 27 de En. de 2015

Community Treasure Hunt

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

Start Hunting!

Translated by