how to calculate magnitude and phase angle of a complex number

813 次查看(过去 30 天)
for example -7+13i
how do i calculate and display the magnitude and phase angle of this

采纳的回答

Andrei Bobrov
Andrei Bobrov 2012-2-15
z = -7+13i
M = abs(z) %magnitude
Ph = angle(z) %phase angle
Ph2 = atan2(imag(z),real(z)) %phase angle

更多回答(2 个)

MALAV DALAL
MALAV DALAL 2017-5-5
编辑:Walter Roberson 2017-5-5
z = 1.5+iw
ph = angle(z)

Dhanush
Dhanush 2024-9-12
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