# medAbsDev

Median absolute deviation.

## Contents

## Syntax

y = medAbsDev(x) y = medAbsDev(x, dim)

## Description

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.

## Reference

Visualizing Data by William Cleveland

## See also

std, median