Converting a complex number to polar form and finding it's magnitude
17 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Nishant Nain
le 1 Sep 2011
Réponse apportée : Marwa aljaziri
le 5 Nov 2017
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 commentaires
Réponse acceptée
Lucas García
le 1 Sep 2011
r = abs(z);
theta = atan2(imag(z),real(z));
Also...
r = abs(z);
theta = angle(z);
3 commentaires
Jay
le 18 Avr 2013
Modifié(e) : Jay
le 18 Avr 2013
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
le 19 Avr 2013
Modifié(e) : Matt Kindig
le 19 Avr 2013
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?
Plus de réponses (1)
Marwa aljaziri
le 5 Nov 2017
how to convert bus admittance matrix to polar form with angle in radian
0 commentaires
Voir également
Catégories
En savoir plus sur String Parsing dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!