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?
댓글 수: 0
채택된 답변
Lucas García
2011년 9월 1일
r = abs(z);
theta = atan2(imag(z),real(z));
Also...
r = abs(z);
theta = angle(z);
댓글 수: 3
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
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
2017년 11월 5일
how to convert bus admittance matrix to polar form with angle in radian
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Data Type Conversion에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!