Language Reference

ABS Function

takes the absolute value

ABS( matrix)

where matrix is a numeric matrix or literal.

The ABS function is a scalar function that returns the absolute value of every element of the argument matrix. An example of how to use the ABS function follows:

  
    a = { -1 2 -3, 0 -1 2 }; 
    c=abs(a);
 

Previous Page | Next Page | Top of Page