Using Simulink    
Product

Generate the element-wise product, quotient, matrix product, or inverse of block inputs.

Library

Math

Description

The Product block outputs the element-wise or matrix product of its inputs, depending on the values of the Multiplication and Number of inputs parameters:

If necessary, Simulink resizes the block to show all input ports. If the number of inputs is changed, ports are added or deleted from the bottom of the block.

Data Type Support

The Product block accepts real- or complex-valued signals of any data type for element-wise multiplication. All input signals must be of the same data type. The output signal data type is the same as the input's. The inputs must be real or complex signals of type single or double for matrix multiplication.

Parameters and Dialog Box

Multiplication
Specifies whether to use element-wise or matrix multiplication to create the product of the inputs.
Number of inputs
Either the number of inputs to the block or a combination of * and / symbols. The default is 2.
Saturate on integer overflow
This option is enabled only for element-wise multiplication. If selected, this option causes the output of the Product block to saturate on integer overflow. In particular, if the output data type is an integer type, the block output is the maximum value representable by the output type or the computed output, whichever is smaller in the absolute sense. If the option is not selected, Simulink takes the action specified by the Data overflow option on the Diagnostics page of the Simulation Parameters dialog (see The Diagnostics Pane).

Characteristics

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


 Prelook-Up Index Search Probe