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

조회 수: 63 (최근 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
Jay
Jay 2013년 4월 18일
편집: Jay 2013년 4월 18일
can this be converted to a single object to be used in calculations. like to be used in a function that accepts polar form arguments. So i dont have to separate all my polar complex numbers similar to the complex(a,b) function but treats the complex number in rectangular form.
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

카테고리

Help CenterFile Exchange에서 Data Type Conversion에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by