SIGN – [SIGN]
Outputs the sign of the input.
CATEGORY
Mathematical
DESCRIPTION
Outputs the sign of the input. Outputs 1 when input is greater than 0, -1 when input is less than 0, and 0 when input is 0.
RESULT VARIABLES AND PARAMETERS
Result | Sign of input [-1, 0, 1]. |
Signal | Input |
SYNTAX
res=sign(input)
CHARACTERISTICS
Data type support
Double Floating point
EXAMPLE