| Statistics Toolbox | ![]() |
Syntax
Description
is the minimum computed by treating m = nanmin(a)
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.
also returns the indices of the minimum values in vector [m,ndx] = nanmin(a)
ndx.
m = nanmin(a,b)
returns the smaller of a or b, which must match in size.
Example
m = magic(3);m([1 6 8]) = [NaN NaN NaN]m =NaN 1 63 5 NaN4 NaN 2[nmin,minidx] = nanmin(m)nmin =3 1 2minidx =2 1 3
See Also
nanmax, nanmean, nanmedian, nanstd, nansum
| nanmedian | nanstd | ![]() |