Scilab Function

median - median (row median, column median) of vector/matrix entries

Calling Sequence

y=median(x)
y=median(x,'r')
y=median(x,'c')

Parameters

Description

For a vector or a matrix x, y=median(x) returns in the scalar y the median of all the entries of x.

y=median(x,'r') (or, equivalently, y=median(x,1)) is the rowwise median. It returns in each entry of the column vector y the median of each row of x.

y=median(x,'c') (or, equivalently, y=median(x,2)) is the columnwise median. It returns in each entry of the row vector y the median of each column of x.

Examples

See Also