Statistics Toolbox
  Go to function:
    Search    Help Desk 
nanmin    Examples   See Also

Minimum ignoring NaNs

Syntax

Description

m = nanmin(a) returns the minimum with NaNs treated as missing. 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



[ Previous | Help Desk | Next ]