Function File: [v, idx] = nanmin (X)
Function File: [v, idx] = nanmin (X, Y)

Find the minimal element while ignoring NaN values.

nanmin is identical to the min function except that NaN values are ignored. If all values in a column are NaN, the minimum is returned as NaN rather than [].

See also: min, nansum, nanmax, nanmean, nanmedian.

Package: statistics