making two columns from a row vector
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
cgo
il 12 Lug 2018
Commentato: Walter Roberson
il 12 Lug 2018
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 Commenti
Risposta accettata
Walter Roberson
il 12 Lug 2018
output = reshape(YourVector, 2, []) .' ;
2 Commenti
Walter Roberson
il 12 Lug 2018
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()
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Operators and Elementary Operations in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!