Median absolute deviation.
y = medAbsDev(x) y = medAbsDev(x, dim)
For vectors, medAbsDev(x) returns the median absolute deviation. For matrices, medAbsDev(x) is a row vector containing the median absolute deviation of each column. For N-D arrays, medAbsDev(x) is the median absolute deviation of the elements along the first non-singleton dimension of x.
medAbsDev(x, dim) takes the median absolute deviation along the dimension dim of x.
Visualizing Data by William Cleveland