Sign
This block implements the sign function applied to each entry of the input to produce the corresponding output. The possible output values are 1, 0 and -1.
Library
MathOperations
Description
The Sign block indicates the sign of the input. The output is 1 when the input is greater than zero , 0 when the input is equal to zero and -1 when the input is less than zero.
Parameters
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
nzz | Apply zero crossing | Enables the detection of zero crossings. | Scalar | 0 |
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 |
Ports
Name | Type | Description | IO Type | Number |
---|---|---|---|---|
Port 1 | explicit | output | 1 | |
Port 2 | explicit | input | 1 | |
Port 3 | activation | input | externalActivation |
Advanced Properties
Name | Value | Description |
---|---|---|
always active | no | |
direct-feedthrough | yes | |
zero-crossing | yes | |
mode | yes | |
continuous-time state | no | |
discrete-time state | no |