PS Sign
R2026bOutput sign of input physical signal
Libraries:
Simscape /
Foundation Library /
Physical Signals /
Nonlinear Operators
Description
The PS Sign block returns the sign of the input physical signal:
The output is 1 when the input is greater than zero.
The output is 0 when the input is equal to zero.
The output is –1 when the input is less than zero.
Both the input and the output are physical signals. Untyped physical ports facilitate the signal size propagation. The output signal is always unitless.
Ports
Input
Output
Programmatic Use: Add Block
To add the block programmatically, use the add_block function with one of these library block paths as the source.
"fl_lib/Physical Signals/Nonlinear Operators/PS Sign"
Example: add_block("fl_lib/Physical Signals/Nonlinear Operators/PS Sign","myModel/myBlock",MakeNameUnique="on")
For information about programmatic access to individual block parameters, see the Programmatic Use section of parameter descriptions on this page.
