function meddev

Returns the median deviation from the median in X.

Syntax
result = meddev(X)

Arguments
X:   A matrix.


Switches
/x:   Calculate the median deviation along the first axis
/y:   Calculate the median deviation along the second axis
/z:   Calculate the median deviation along the third axis
/xy:   Calculate the median deviation along the first and second axes
/xz:   Calculate the median deviation along the first and third axes
/yz:   Calculate the median deviation along the second and third axes


Examples
To get a 1D vector of the median deviation of all slices along a 3D cube:
   v = meddev(cube, /xy)

See also
function max
function min
function avg
function total
function median
function stddev