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 日

1 投票

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.
David Young
David Young 2015 年 1 月 27 日
Not on my system (R2014b under Windows), Stephen. Both take negligible time compared to whatever else the program might be doing.
Stephen23
Stephen23 2015 年 1 月 27 日
Fair enough :)

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeEntering 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