|
|
Max
When applied to two numbers or to two arrays of numbers, Max produces the largest of the two numbers or an array of the biggest values of corresponding components, respectively. It has three variables: in1, in2 and out.
Structure (for scalars): if in1 > in2 then out becomes in1 if in1 <= in2 then out becomes in2
Examples: in1 = 3, in2 = 9 => out = 9 in1 = 8, in2 = 2 => out = 8 in1 = (1, 2), in2 = (2, 1) => out = (2, 2)
Special compound model elements
|