Simulink Reference | ![]() ![]() |
Output the minimum or maximum input value
Library
Description
The MinMax block outputs either the minimum or the maximum element or elements of the inputs. You can choose the function to apply by selecting one of the choices from the Function parameter list.
If the block has one input port, the input must be a scalar or a vector. The block outputs a scalar equal to the minimum or maximum element of the input vector.
If the block has multiple input ports, the nonscalar inputs must all have the same dimensions. The block expands any scalar inputs to have the same dimensions as the nonscalar inputs. The block outputs a signal having the same dimensions as the input. Each output element equals the minimum or maximum of the corresponding input elements.
Data Type Support
A MinMax block accepts and outputs real-valued signals of any data type except int64
and uint64
.
Parameters and Dialog Box
min
or max
) to apply to the input.Characteristics
Direct Feedthrough |
Yes |
Sample Time |
Inherited from the driving block |
Scalar Expansion |
Of the inputs |
Dimensionalized |
Yes |
![]() | Merge | Model Info | ![]() |