Max

The larger of two signals.

  • signal
  • Gradara equations
  • 3 ports
BlockMaxKindmaxLibraryMath

Description

Outputs the larger of two signals.

Example

Arithmetic Sum, difference, product, quotient, minimum, and maximum of a ramp and a constant.

a = tb = 2a + ba − ba · ba / bmin(a, b)max(a, b)
In Gradara, select a Max block and press F1, then choose Open example. It opens as a new model in My models, ready to run.

Also in this example:SumSubtractConstantRampProductDivideMin

Ports

Inputs 2

  • a

    First input.

  • b

    Second input.

Outputs 1

  • y

    Output signal, the larger of a and b.

Equations

Modelica
y = max(a, b)

Implementation

The block’s Modelica model
y = max(a, b);

See also

Select a block in Gradara and press F1 to open its page offline.