PS Dot Product
R2026bLibraries:
Simscape /
Foundation Library /
Physical Signals /
Functions
Description
The PS Dot Product block calculates the scalar dot product of two vector or matrix physical signals:
where:
y is the physical signal at the output port O.
u1 is the physical signal at the input port I1.
u2 is the physical signal at the input port I2.
The two input physical signals can be either vectors or matrices:
If u1 and u2 are vectors, then they must have the same length.
If u1 and u2 are matrices, then they must have the same size and the block computes the column-wise dot product.
The unit at the output port is determined by unit propagation rules. For more information, see Physical Signal Unit Propagation.
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 Dot Product"
Example: add_block("fl_lib/Physical Signals/Functions/PS Dot Product","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
dot | PS
Concatenate | PS
Selector | PS Sum of
Elements | PS Vector
Norm
