how to calculate magnitude and phase angle of a complex number

527 Ansichten (letzte 30 Tage)
for example -7+13i
how do i calculate and display the magnitude and phase angle of this

Akzeptierte Antwort

Andrei Bobrov
Andrei Bobrov am 15 Feb. 2012
z = -7+13i
M = abs(z) %magnitude
Ph = angle(z) %phase angle
Ph2 = atan2(imag(z),real(z)) %phase angle
  3 Kommentare
Nicholas Cassavaugh
Nicholas Cassavaugh am 13 Okt. 2021
Yes, it is in radians. You can convert radians to degrees if you wish afterward.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (2)

MALAV DALAL
MALAV DALAL am 5 Mai 2017
Bearbeitet: Walter Roberson am 5 Mai 2017
z = 1.5+iw
ph = angle(z)

Dhanush
Dhanush am 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