MATLAB Function Reference Previous page   Next Page
angle

Phase angle

Syntax

Description

P = angle(Z) returns the phase angles, in radians, for each element of complex array Z. The angles lie between .

For complex Z, the magnitude R and phase angle theta are given by

and the statement

converts back to the original complex Z.

Examples

Algorithm

The angle function can be expressed as angle(z) = imag(log(z)) = atan2(imag(z),real(z)).

See Also

abs, atan2, unwrap


Previous page  and annotation Next page

© 1994-2005 The MathWorks, Inc.