Version:

Computes the absolute values of the input elements.

The absolute value of a complex number is equal to its magnitude, or the square root of the product of the number and its complex conjugate.

## Syntax

c = abs(a)

## a

Scalar or array of any dimension of numeric or Boolean values.

## c

Absolute values of the elements in a. c is an double array of the same size as a.