Simulink Reference Previous page   Next Page
Dot Product

Generate the dot product

Library

Math Operations

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

Require all inputs to have same data type
Select to require all inputs to have the same data type.
Output data type mode
Set the data type and scaling of the output to be the same as that of the first input, or to be inherited via an internal rule or by backpropagation. Alternatively, choose to specify the data type and scaling of the output through the Output data type and Output scaling value parameters.
Output data type
Set the output data type. This parameter is only visible if you select Specify via dialog for the Output data type mode parameter.
Output scaling
Set the output scaling using either binary point-only or [Slope Bias] scaling. This parameter is only visible if you select Specify via dialog for the Output data type and scaling parameter.
Lock output scaling against changes by the autoscaling tool
Select to lock scaling of outputs. This parameter is only visible if you select Specify via dialog for the Output data type mode parameter.
Round integer calculations toward
Select the rounding mode for fixed-point operations.
Saturate on integer overflow
Select to have overflows saturate.

Characteristics

Direct Feedthrough
Yes
Sample Time
Inherited from driving block
Scalar Expansion
No
States
0
Dimensionalized
Yes
Zero Crossing
No


Previous page  DocBlock GEmbedded MATLAB Function Next page

© 1994-2005 The MathWorks, Inc.