Using Simulink | ![]() ![]() |
Library
Description
The Dot Product block generates the dot product of its two input vectors. The scalar output, y
, is equal to the MATLAB operation
y = sum(conj(
u1).*
u2 )
where u1
and u2
represent the vector inputs. If both inputs are vectors, they must be the same length. The elements of the input vectors may be real- or complex-valued signals of data type double
. The signal type (complex or real) of the output depends on the signal types of the inputs.
Input 1 |
Input 2 |
Output |
real |
real |
real |
real |
complex |
complex |
complex |
real |
complex |
complex |
complex |
complex |
To perform element-by-element multiplication without summing, use the Product block.
Data Type Support
A Dot Product block accepts and outputs signals of type double
.
Dialog Box
Characteristics
Direct Feedthrough |
Yes |
Sample Time |
Inherited from driving block |
Scalar Expansion |
No |
States |
0 |
Dimensionalized |
Yes |
Zero Crossing |
No |
![]() | Display | Enable | ![]() |