nanmin

Syntax

Description

For vectors x, nanmin(x) is
the minimum of the remaining elements, once NaN values
are removed. For matrices X, nanmin(X) is
a row vector of column minima, once NaN values
are removed. For multidimensional arrays X, nanmin operates
along the first nonsingleton dimension.

Y = nanmin(X1,X2) returns
an array Y the same size as X1 and X2 with Y(i,j)
= nanmin(X1(i,j),X2(i,j)). Scalar inputs are expanded to
an array of the same size as the other input.

y = nanmin(X,[],dim) operates along the
dimension dim of X.

[y,indices] = nanmin(...) also
returns the row indices of the minimum values for each column in the
vector indices.