Statistics Toolbox
  Go to function:
    Search    Help Desk 
nanmedian    Examples   See Also

Median ignoring NaNs

Syntax

Description

nanmedian(X) the median treating NaNs as missing values.

For vectors, nanmedian(x) is the median of the non-NaN elements of x. For matrices, nanmedian(X) is a row vector containing the median of the non-NaN elements in each column of X.

Example

See Also

nanmin, nanmax, nanmean, nanstd, nansum



[ Previous | Help Desk | Next ]