Signal Processing Toolbox    
abs

Absolute value (magnitude).

Syntax

Description

y = abs(x) returns the absolute value of the elements of x. If x is complex, abs returns the complex modulus (magnitude).

If x is a MATLAB string, abs returns the numeric values of the ASCII characters in the string. The display format of the string changes; the internal representation does not.

The abs function is part of the standard MATLAB language.

Example

Calculate the magnitude of the FFT of a sequence.

Plot the magnitude.

See Also

angle
Phase angle.


 Alphabetical List of Functions ac2poly