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

采纳的回答

Walter Roberson
Walter Roberson 2018-7-12
output = reshape(YourVector, 2, []) .' ;
  2 个评论
cgo
cgo 2018-7-12
What is the . for? That is what I miss. Thanks
Walter Roberson
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 CenterFile Exchange 中查找有关 Operators and Elementary Operations 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by