min

Minimum element of an array if there is a single array argument; the minimum value from all values in the arguments

Syntax

[y, id] = min ( x1,x2,... )
[y, id] = x1.min ( x2,... )

Inputs

ArgumentTypeDescriptionUnit
x1scalar or vector......
x2scalar or vector--
......--

Outputs / Return Value

Examples

a=[8 2 4 6]; min(a) or a.min → 2
b=[3 0 -1]; min(a,b) or a.min(b) → -1
Multiple output [a,b]=(1:10:120).matrix(3).max() returns
a=
1
41
81

b=
1
1
1

See Also

Review Status