Using Simulink    
MinMax

Output the minimum or maximum input value.

Library

Math

Description

The MinMax block outputs either the minimum or the maximum element or elements of the input(s). You can choose which 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.

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.

Characteristics

Direct Feedthrough
Yes
Sample Time
Inherited from the driving block
Scalar Expansion
Of the inputs
Dimensionalized
Yes
Zero Crossing
Yes, to detect minimum and maximum values


 Merge Model Info