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

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.


[ Previous | Help Desk | Next ]