abs
Absolute Value
y=abs(x)
Inputs
x An array of real or complex numbers.
Outputs
y An array of same size as x . Each element of the output is the absolute value of the corresponding element of the input.


Example
>>a=floor(randn(2,3,4)*100)  
>>a
[:,1:3, 1]
           71            6            5
          -70          151           24
[:,1:3, 2]
          -38           88          142
          -23          -96           30
[:,1:3, 3]
            9          131           54
           65          133          -57
[:,1:3, 4]
           34          -35          -51
           60         -125          133

>>abs(a)
[:,1:3, 1]
           71            6            5
           70          151           24
[:,1:3, 2]
           38           88          142
           23           96           30
[:,1:3, 3]
            9          131           54
           65          133           57
[:,1:3, 4]
           34           35           51
           60          125          133