min
Syntax
Description
returns the
minimum elements of a symbolic input.M
= min(A
)
If
A
is a vector, thenmin(A)
returns the minimum ofA
.If
A
is a matrix, thenmin(A)
is a row vector containing the minimum value of each column.
For an input A
that contains symbolic expression, the
symbolic min
function returns an unevaluated expression that is reduced
by eliminating arguments that do not represent minimum values. The output may have another
argument that represents the condition for the symbolic variable. For example,
syms x; min([1 x])
returns the output min([1, x], [], 2,
'Omitnan', ~in(x, 'real'))
in the Command Window since x
is
complex.