Using Simulink     Search    Help Desk 
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 block outputs a scalar that is the minimum or maximum element of the input vector.

If the block has more than one input port, the block performs an element-by-element comparison of the input vectors. Each element of the block output vector is the result of the comparison of the elements of the input vectors.

Data Type Support

A MinMax block accepts and outputs real-valued signals of type double.

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
Vectorized
Yes
Zero Crossing
Yes, to detect minimum and maximum values



[ Previous | Help Desk | Next ]