Generate dot product of two vectors
Simulink / Math Operations
HDL Coder / Math Operations
The Dot Product block generates the dot product of the input vectors. The
scalar output, y
, is equal to the MATLAB® operation
y = sum(conj(u1) .* u2 )
where u1
and u2
represent the input vectors. The
inputs can be vectors, column vectors (single-column matrices), or scalars. If both
inputs are vectors or column vectors, they must be the same length. If
u1
and u2
are both column vectors, the block
outputs the equivalent of the MATLAB expression u1'*u2
.
The elements of the input vectors can be real- or complex-valued signals. 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 |
Data Types |
|
Direct Feedthrough |
|
Multidimensional Signals |
|
Variable-Size Signals |
|
Zero-Crossing Detection |
|