med
Syntax
med(X)
Arguments
X is a scalar/vector/matrix.
Details
If X is a vector, return the median of all the elements in X.
If X is a matrix, calculate the median of each column of X and return a vector.
As with all aggregate functions, NULL values are not included in the calculation.
Please note that the data type of the result is always DOUBLE.