How to properly transpose a matrix

8 ビュー (過去 30 日間)
Brandon Bush
Brandon Bush 2018 年 7 月 6 日
編集済み: Stephen23 2018 年 7 月 6 日
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?

採用された回答

Stephen23
Stephen23 2018 年 7 月 6 日
編集済み: Stephen23 2018 年 7 月 6 日
Regardless of the input size, this will give a column vector:
Array = Array(:)

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCreating and Concatenating Matrices についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by