PS Gain
R2026bMultiply input physical signal by constant
Libraries:
Simscape /
Foundation Library /
Physical Signals /
Functions
Description
The PS Gain block performs element-wise multiplication of the input physical signal by a constant value (gain). You specify the gain as the Gain parameter value and unit.
The input signal value is multiplied by the value of the Gain parameter.
The signal unit at the output port is determined by unit propagation rules. For example,
if the input signal is in N and the Gain parameter
unit is m, then the output physical signal has the unit of
N*m. For more information, see Physical Signal Unit Propagation.
Examples
Ports
Input
Output
Parameters
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 Gain"
Example: add_block("fl_lib/Physical Signals/Functions/PS Gain","myModel/myBlock",MakeNameUnique="on")
For information about programmatic access to individual block parameters, see the Programmatic Use section of parameter descriptions on this page.


