Statistics Toolbox    
nanmin

Minimum ignoring NaNs

Syntax

Description

m = nanmin(a) is the minimum computed by treating NaNs as missing values. For vectors, nanmin(a) is the smallest non-NaN element in a. For matrices, nanmin(A) is a row vector containing the minimum non-NaN element from each column.

[m,ndx] = nanmin(a) also returns the indices of the minimum values in vector ndx.

m = nanmin(a,b) returns the smaller of a or b, which must match in size.

Example

See Also
nanmax, nanmean, nanmedian, nanstd, nansum


  nanmedian nanstd