| Simulink Reference | ![]() |
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
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 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 |
To perform element-by-element multiplication without summing, use the Product block.
Data Type Support
The Dot Product block accepts and outputs signals of any data type supported by Simulink, including fixed-point data types.
For a discussion on the data types supported by Simulink, refer to Data Types Supported by Simulink in the Using Simulink documentation.
Parameters and Dialog Box
Specify via dialog for the Output data type mode parameter.
Specify via dialog for the Output data type and scaling parameter.
Specify via dialog for the Output data type mode parameter.
Characteristics
| Direct Feedthrough |
Yes |
| Sample Time |
Inherited from driving block |
| Scalar Expansion |
No |
| States |
0 |
| Dimensionalized |
Yes |
| Zero Crossing |
No |
| DocBlock | GEmbedded MATLAB Function | ![]() |
© 1994-2005 The MathWorks, Inc.