Signal Processing Toolbox
  Go to function:
    Search    Help Desk 
angle    Examples   See Also

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:

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).


[ Previous | Help Desk | Next ]