min
Minimum value function.
Syntax
min(expr)
Argument
- expr
- A valid scalar, vector, or matrix expression.
Example
Templex Expression | Result |
---|---|
{min(17)} |
17 |
{min( {3, 3, 7} )} |
3 |
{min( {{1, -2}, {3, 1}} )} |
-2 |
{a = {24, 92, 100} min(a)} |
24 |
Comments
The min function returns the minimum value of expr.
If expr is a scalar, the result is expr.
If expr is either a vector or a matrix, the result is the element with the least value.