min

Navigation:  Language Reference > Functions > Matrix >

min

Previous pageReturn to chapter overviewNext page

Syntax 1

For a matrix / vector:

y = min(A);

 

Description

Returns the value of the smallest matrix element of A.

 

Syntax 2

For scalars:

y = min(a,b);

 

Description

Returns the smallest of the two values a or b.

 

Examples

A = [1,2;3,ramp(1)];

y = min(A);

y = min(time, 5.0); //will return at most 5.0

 

Limitations

y must be a scalar.