Median

Syntax: s = MEDIAN(x)

The MEDIAN function only accepts one vector argument. The function returns the median of that vector's data.

Suppose that x is a vector with N elements.

The median is the element of x which has equal numbers of values above it and below it. If N is even, the median is the average of the unique two central values.