Converting polar form complex numbers into rectangular form

279 vues (au cours des 30 derniers jours)
Dalton Houghton-Schaffer
Dalton Houghton-Schaffer le 4 Sep 2019
Commenté : Voss le 3 Avr 2024
I am having trouble converting polar form complex numbers into rectangular form by writing a MATLAB script file.
I'm not fimular with MATLAB keywords but need to use this to prove my answers.
Z = 0.5 angle( pi / 4 )
or
Z = 0.5 angle( - 45 degrees )
  4 commentaires
Rama
Rama le 3 Avr 2024
Déplacé(e) : Voss le 3 Avr 2024
Create the following two functions in MATLAB in order to easily convert between complex rectangular and polar forms. Test the functions by confirming that 3 + 5j  5.859
Voss
Voss le 3 Avr 2024
@Rama: To ask a new question, use this link:
Be sure not merely to post your homework assignment, but ask a specific question about what you are having trouble with and show any attempt you have made to solve it yourself.

Connectez-vous pour commenter.

Réponse acceptée

KALYAN ACHARJYA
KALYAN ACHARJYA le 4 Sep 2019
Modifié(e) : KALYAN ACHARJYA le 4 Sep 2019
"Converting polar form complex numbers into rectangular form"
z=0.5;theta=pi/4;
[X,Y]=pol2cart(theta,z)
Result:
X =
0.3536
Y =
0.3536
Manually:
data11.png

Plus de réponses (0)

Catégories

En savoir plus sur Data Type Conversion dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by