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!

 채택된 답변

David Young
David Young 2015년 1월 27일
See the documentation for transpose - give the command
doc transpose
or
help transpose

댓글 수: 3

Stephen23
Stephen23 2015년 1월 27일
편집: Stephen23 2015년 1월 27일
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 :)

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Entering Commands에 대해 자세히 알아보기

태그

질문:

2015년 1월 27일

댓글:

2015년 1월 27일

Community Treasure Hunt

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

Start Hunting!

Translated by