Function File: v = nanmean (X)
Function File: v = nanmean (X, dim)
Compute the mean value while ignoring NaN values.
nanmeanis identical to themeanfunction except that NaN values are ignored. If all values are NaN, the mean is returned as NaN.
Package: statistics