Signal Processing Toolbox    
angle

Phase angle.

Syntax

Description

p = angle(h) returns the phase angles, in radians, of the elements of complex vector or array h. The phase angles lie between - and .

For complex sequence h = x + iy = meip, the magnitude and phase are given by

To convert to the original h from its magnitude and phase, type

The angle function is part of the standard MATLAB language.

Example

Calculate the phase of the FFT of a sequence.

Plot the phase.

Algorithm

angle can be expressed as

See Also

abs
Absolute value (magnitude).


 ac2rc arburg