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

43 次查看(过去 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 中查找有关 Mathematics 的更多信息

标签

产品

Community Treasure Hunt

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

Start Hunting!

Translated by