Syntax: |
vout = MIN( v1{,v2,...} )
|
The MIN
function accepts from one to a maximum
of twenty (20) arguments. If only one argument is supplied, the minimum element of that
argument is returned. If two or more arguments are supplied, the arguments are compared
element by element, and the minimum values are returned. The arguments can be scalars,
vectors, matrices or tensors, but cannot be mixed, and all arrays must be the same size.
Scalar arguments result in a scalar. Vector arguments result in a vector with the same
length as the arguments, and matrix (tensor) arguments result in a matrix (tensor) with
the same dimensions as the arguments.
arguments | result | definition | |
one vector | scalar | MIN(x) |
= minimum(x[1],x[2],...,x[#] ) |
one matrix | scalar | MIN(m) |
= minimum(m[1,1],...,m[#,#] ) |
scalars | scalar | MIN(a,b,...) |
= minimum(a,b,... ) |
vector | vector | MIN(x,y,...)[j] |
= minimum(x[j],y[j],... ) |
matrix | matrix | MIN(m1,m2,...)[i,j] |
= minimum(m1[i,j],m2[i,j],... ) |