Minimum / Maximum

Purpose

Output input signal with highest resp. lowest value

Library

Control / Math

Description

../../_images/minmax.svg

The Minimum / Maximum block compares its input signals against each other. If the Operation parameter is set to Minimum, the output will be set to the value of the input signal with the lowest value. If the Operation parameter is set to Maximum, the output will be set to the value of the input signal with the highest value.

In case of a single input, all elements of the input vector are compared. Vectorized input signals of the same width are compared element wise and result in a vectorized output signal. If vectorized and scalar input signals are mixed, the scalar input signals are expanded to the width of the vectorized input signals.

Example Model

  • See the example model “Minimum / Maximum”.

  • Find it in PLECS under Help > PLECS Documentation > List of Example Models.

Parameters

Operation

Selects between Minimum and Maximum as described above.

Number of inputs

The number of inputs.

Probe Signals

Input \(i\)

The \(i\)-th input signal.

Output

The block output signal.