Signal Processing Toolbox Help Desk

abs

Purpose

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.

This function is part of the standard MATLAB environment.

Example

Calculate the magnitude of the FFT of a sequence:

Plot the magnitude:

See Also

angle

Phase angle.



[ Previous | Help Desk | Next ]