I want to express a number as a complex number

조회 수: 1 (최근 30일)
aldo angulo
aldo angulo 2018년 3월 2일
댓글: aldo angulo 2018년 3월 5일
I have the following expression in polar form 700 angle of 8.11 ..... I want to express this number in matlab. How can I express it as a single number in either polar or rectangular mode?

채택된 답변

Walter Roberson
Walter Roberson 2018년 3월 2일
There is no MATLAB notation for polar form. Some languages have notations such as 700+<8.11 but MATLAB does not.
For radius R (such as 700) and angle A (such as 8.11*pi/180) then the complex representation is
R*(cos(A) + 1i*abs(sin(A)))
This might not work for negative angles, possibly.
  댓글 수: 1
aldo angulo
aldo angulo 2018년 3월 5일
Thanks alot, it worked fine. As far as negative angles, I just expressed them in positive to avoid mistakes.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Language Fundamentals에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by