PS Subtract
R2026bCompute simple subtraction of two input physical signals
Libraries:
Simscape /
Foundation Library /
Physical Signals /
Functions
Description
The PS Subtract block subtracts one physical signal input from another and outputs the difference:
where
| I1 | Physical signal at the first input port (marked with the plus sign) |
| I2 | Physical signal at the second input port (marked with the minus sign) |
| O | Physical signal at the output port |
Physical signals at the two input ports must have commensurate units. The unit at the output port is determined by unit propagation rules. For more information, see Physical Signal Unit Propagation.
Examples
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/Functions/PS Subtract"
Example: add_block("fl_lib/Physical Signals/Functions/PS Subtract","myModel/myBlock",MakeNameUnique="on")
For information about programmatic access to individual block parameters, see the Programmatic Use section of parameter descriptions on this page.


