Row to column matrix

34 visualizaciones (últimos 30 días)
armin m
armin m el 17 de Sept. de 2021
Comentada: William Rose el 17 de Sept. de 2021
Hi i want to convert row to column matrix. But my matrix includes complex numbers which transposing it causes convertion of new matrix to conjucate form. What can i do to avoid this. I mean for example:
A=[1+5i,4+6i]
I want
A=[1+5i]
[4+6i]
But A' takes
A=[1-5i]
[4-6i]
Tnx.

Respuesta aceptada

Image Analyst
Image Analyst el 17 de Sept. de 2021
Use .' or reshape():
A = [1 + 5i, 4 + 6i]
A = A.' % Alternative 1
A = reshape(A, [], 1) % ALternative 2

Más respuestas (1)

William Rose
William Rose el 17 de Sept. de 2021
See the following:
a=[1,1+i,-1+i]
a =
1.0000 + 0.0000i 1.0000 + 1.0000i -1.0000 + 1.0000i
b=conj(a')
b =
1.0000 + 0.0000i 1.0000 + 1.0000i -1.0000 + 1.0000i
  2 comentarios
armin m
armin m el 17 de Sept. de 2021
Thank you a lot. 😁😁 i think a bit thinking may cause better result. Thank you a lot.
William Rose
William Rose el 17 de Sept. de 2021
You're welcome @armin m.

Iniciar sesión para comentar.

Categorías

Más información sobre Logical en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by