how to calculate magnitude and phase angle of a complex number

819 vues (au cours des 30 derniers jours)
lowcalorie
lowcalorie le 15 Fév 2012
for example -7+13i
how do i calculate and display the magnitude and phase angle of this

Réponse acceptée

Andrei Bobrov
Andrei Bobrov le 15 Fév 2012
z = -7+13i
M = abs(z) %magnitude
Ph = angle(z) %phase angle
Ph2 = atan2(imag(z),real(z)) %phase angle
  3 commentaires
Reza Nikfar
Reza Nikfar le 28 Sep 2020
no this is radian
Nicholas Cassavaugh
Nicholas Cassavaugh le 13 Oct 2021
Yes, it is in radians. You can convert radians to degrees if you wish afterward.

Connectez-vous pour commenter.

Plus de réponses (2)

MALAV DALAL
MALAV DALAL le 5 Mai 2017
Modifié(e) : Walter Roberson le 5 Mai 2017
z = 1.5+iw
ph = angle(z)

Dhanush
Dhanush le 12 Sep 2024
x = 1 + i*1;
Magnitude = abs(x);
Phase_radians = angle(x);
Phase_degrees = rad2deg(Phase_radians);

Community Treasure Hunt

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

Start Hunting!

Translated by