| 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
The MinMax block accepts and outputs real signals of any data type supported by Simulink, except Boolean. The MinMax block supports fixed-point data types.
For a discussion on the data types supported by Simulink, refer to Data Types Supported by Simulink in the Using Simulink documentation.
Parameters and Dialog Box
The Main pane of the MinMax block dialog appears as follows:
min or max to the input.
-1. See Specifying Sample Time in the online documentation for more information.
The Signal data types pane of the MinMax block dialog appears as follows:
Specify via dialog, the Output data type, Output scaling value, and Lock output scaling against changes by the autoscaling tool parameters become visible.
Specify via dialog for the Output data type mode parameter.
Specify via dialog for the Output data type mode parameter.
Specify via dialog for the Output data type mode parameter.
Characteristics
| Direct Feedthrough |
Yes |
| Sample Time |
Specified in the Sample time parameter |
| Scalar Expansion |
Yes, of the inputs |
| Dimensionalized |
Yes |
| Zero Crossing |
Yes, if enabled. |
| Merge | MinMax Running Resettable | ![]() |
© 1994-2005 The MathWorks, Inc.