MinMax Running Resettable

Determine minimum or maximum of signal over time


Math Operations


The MinMax Running Resettable block outputs the minimum or maximum of all past inputs u. You specify whether the block outputs the minimum or the maximum with the Function parameter.

The block can reset its state based on an external reset signal R. When the reset signal R is TRUE, the block resets the output to the value of the Initial condition parameter.

The input can be a scalar, vector, or matrix signal. If you specify a scalar Initial condition parameter, the block expands the parameter to have the same dimensions as a nonscalar input. The block outputs a signal having the same dimensions as the input. Each output element equals the running minimum or maximum of the corresponding input elements.

Data Type Support

The MinMax Running Resettable block accepts and outputs real signals of any numeric data type that Simulink® supports, except Boolean. The MinMax Running Resettable block supports fixed-point data types.

For more information, see Data Types Supported by Simulink in the Simulink documentation.



Specify whether the block outputs the minimum or the maximum.

Initial condition

Specify initial condition.


Data Types

Double | Single | Base Integer | Fixed-Point

Direct Feedthrough


Multidimensional Signals


Variable-Size Signals


Code Generation


See Also


Introduced before R2006a

Was this topic helpful?