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 it has more than one input, the output is obtained by applying the min or max function elementwise to the entries of the inputs.
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
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
mm | Function | Function type: min or max. | String | 'Min' |
nin | Number of input ports | Real value. | Number | |
zc | Enable zero-crossing | Used to enable the detection of zero crossings. | Scalar | 0 |
externalActivation | External activation | This parameter defines if the block receives an external activation or inherits. When External Activation is used, a additional activation port is added to the block. default is OFF. | Number | 0 |
Ports
Name | Type | Description | IO Type | Number |
---|---|---|---|---|
Port 1 | explicit | input | nin | |
Port 2 | explicit | output | 1 | |
Port 3 | activation | input | externalActivation |
Advanced Properties
Name | Value | Description |
---|---|---|
always active | no | |
direct-feedthrough | yes | |
zero-crossing | no | |
mode | no | |
continuous-time state | no | |
discrete-time state | no |