PS Sum of Elements
R2026bLibraries:
Simscape /
Foundation Library /
Physical Signals /
Functions
Description
The PS Sum of Elements block calculates the sum of elements of a vector or matrix input physical signal:
where:
y is the physical signal at the output port O.
u is the physical signal at the input port I.
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 Sum of Elements"
Example: add_block("fl_lib/Physical Signals/Functions/PS Sum of Elements","myModel/myBlock",MakeNameUnique="on")
For information about programmatic access to individual block parameters, see the Programmatic Use section of parameter descriptions on this page.
Extended Capabilities
Version History
Introduced in R2023b
See Also
PS Concatenate | PS Dot Product | PS Selector | PS Vector Norm
