David
Farruggio

MathGenie

angle

Phase angle

Syntax and Description

angle(Z) returns the phase angles, in radians, for each element of complex array Z. The angles lie between +/-pi. For complex Z, the magnitude R and phase angle theta are given by
R = abs(Z)
theta = angle(Z)
and the statement
Z = R.*exp(i*theta)
converts back to the original complex Z.

Back to functions