Simulink Reference    
MinMax

Output the minimum or maximum input value

Library

Math Operations

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

Function
The function (min or max) to apply to the input.
Number of input ports
The number of inputs to the block.
Enable zero crossing detection
Select to enable zero crossing detection to detect minimum and maximum values. For more information, see Zero Crossing Detection in the Using Simulink documentation.

Characteristics

Direct Feedthrough
Yes
Sample Time
Inherited from the driving block
Scalar Expansion
Of the inputs
Dimensionalized
Yes


  Merge Model Info