making two columns from a row vector
2 ビュー (過去 30 日間)
古いコメントを表示
I have a row vector of size 1 x 600;
I want to create a two column vector such that elements 1 and 2 of the row vector are in row 1; elements 3 and 4 are in row 2; and so on.
Please help
0 件のコメント
採用された回答
Walter Roberson
2018 年 7 月 12 日
output = reshape(YourVector, 2, []) .' ;
2 件のコメント
Walter Roberson
2018 年 7 月 12 日
The ' operator is "conjugate transpose", equivalent to
transpose(conj(DATA))
The .' operator is transpose without taking the complex conjugate, identical to calling transpose() without conj()
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Operators and Elementary Operations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!