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
medianfunction except that NaN values are ignored. If all values are NaN, the median is returned as NaN.
Package: statistics