Function File: v = nanmedian (x)
Function File: v = nanmedian (x, dim)

Compute the median of data while ignoring NaN values.

This function is identical to the median function except that NaN values are ignored. If all values are NaN, the median is returned as NaN.

See also: median, nanmin, nanmax, nansum, nanmean.

Package: statistics