P = angle(Z)
angle(Z) returns the phase angles, in radians, of the elements of complex matrix Z. The angles lie between -pi and pi.
For complex Z, the magnitude and phase are given by
and the statementr = abs(Z)theta = angle(Z)
converts back to the original complexZ = r.*exp(i*theta)
Z.
angle can be expressed as:
angle(Z) = imag(log(Z)) = atan2(imag(Z),real(Z))
abs,unwrap
(c) Copyright 1994 by The MathWorks, Inc.