Row to column matrix

조회 수: 26 (최근 30일)
armin m
armin m 2021년 9월 17일
댓글: William Rose 2021년 9월 17일
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.

채택된 답변

Image Analyst
Image Analyst 2021년 9월 17일
Use .' or reshape():
A = [1 + 5i, 4 + 6i]
A = A.' % Alternative 1
A = reshape(A, [], 1) % ALternative 2

추가 답변 (1개)

William Rose
William Rose 2021년 9월 17일
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
armin m
armin m 2021년 9월 17일
Thank you a lot. 😁😁 i think a bit thinking may cause better result. Thank you a lot.
William Rose
William Rose 2021년 9월 17일
You're welcome @armin m.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Numeric Types에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by