web123456

ABS function in matlab

Function: Absolute value of a numeric value and amplitude of a complex number

2. Basic usage: The abs(x) function is a function that processes absolute value on array elements.

The domain of the function includes complex numbers.

For complex x=a+b*i, there is abs(x)=sqrt(a2+b2).