median of the values of a numerical vector or matrix
m = nanmedian(x) m = nanmedian(x, orientation)
real or complex vector or matrix
index of the dimension along which the nanmedian is computed. It can be either
"*" (default), "r" or
"c"real or complex scalar or vector
For a vector or a matrix x,
m = nanmedian(x) or m = nanmedian(x, "*") returns in the vector m the
median of the values (ignoring the NANs) of vector x.
m = nanmedian(x,'r') (or, equivalently,
m = nanmedian(x,1)) are the rowwise medians. It
returns in each position of the row vector m the
medians of data (ignoring the NANs) in the corresponding
column of x.
m = nanmedian(x,'c') (or, equivalently,
m = nanmedian(x,2)) are the columnwise medians. It
returns in each position of the column vector m the
medians of data (ignoring the NANs) in the corresponding
row of x.
In Labostat, NAN values stand for missing values in tables.
Wonacott, T.H. & Wonacott, R.J.; Introductory Statistics, fifth edition, J.Wiley & Sons, 1990.