Converting a complex number to polar form and finding it's magnitude

조회 수: 33(최근 30일)
z = (((-(3)^(0.5) + 3i).^4) * exp((-5i*pi/6))^3)/(2 + 2i)^2; how to convert this into it's polar form and find it's magnitude?

채택된 답변

Lucas García
Lucas García 2011년 9월 1일
r = abs(z);
theta = atan2(imag(z),real(z));
Also...
r = abs(z);
theta = angle(z);
  댓글 수: 3
Matt Kindig
Matt Kindig 2013년 4월 19일
편집: Matt Kindig 2013년 4월 19일
Hi Jay,
I'm not quite sure what you are asking, but you can define a complex number simply as:
z = a+b*1i;
z = 3+2*1i; %for example
This is treated by Matlab as a "single object" for use in calculations, and is expressed in rectangular form. Is this what you are asking?

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

추가 답변(1개)

Marwa aljaziri
Marwa aljaziri 2017년 11월 5일
how to convert bus admittance matrix to polar form with angle in radian

범주

Find more on Get Started with MATLAB in Help Center and File Exchange

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by