MaxMin

This block implements the minimum and the maximum functions. If the block has one input, the output is the min or the max of the entries of the input. If the block has more than one input, the output is obtained by applying the min or max function elementwise to the entries of the inputs.

    MaxMin

Library

MathOperations

Description

The MaxMin block outputs either the minimum or the maximum element or elements of the inputs. You can choose the function to apply by selecting one of the choices from the Function parameter list.

Inputs are either scalar or vector.

Parameters

MaxMin_0

NameLabelDescriptionData TypeValid Values

mm

Function

Function type: min or max.

String

'Min'
'Max'

nin

Number of input ports

Real value.

Number

zc

Enable zero-crossing

Used to enable the detection of zero crossings.

Scalar

0
1

externalActivation

External activation

Specifies whether the block receives an external activation or inherits its activation through its regular input ports. When External Activation is selected, an additional activation port is added to the block. By default, external activation is not selected.

Number

0
1

Ports

NameTypeDescriptionIO TypeNumber

Port 1

explicit

input

nin

Port 2

explicit

output

1

Port 3

activation

input

externalActivation

Advanced Properties

NameValueDescription

always active

no

direct-feedthrough

yes

zero-crossing

no

mode

no

continuous-time state

no

discrete-time state

no