Min
The Min block returns the smaller value at each position.
Behavior
Section titled “Behavior”y = min(a, b)
| Port | Direction | Type |
|---|---|---|
| 0, 1 | Input | Same numeric scalar type, or same-shape numeric arrays |
| 0 | Output | Same type as inputs |
Arrays are compared element by element; a scalar second operand is broadcast when the first input is an array.
Parameters
Section titled “Parameters”None.
Example
Section titled “Example”For inputs a = 4.0 and b = 6.0, the output is y = 4.0.