FixPt Product
Multiply or divide inputs.
Description
The FixPt Product block is a masked S-function that performs multiplication or division of its inputs. Multiply-divide characters ('*' or '/') indicate which operations are to be performed:
- If there are two or more inputs, then the number of multiply-divide characters must equal the number of inputs. For example, '/' requires three inputs and configures the block to divide the first (top) input by the second (middle) input, and then multiply the third (bottom) input. If the first character is '/', then the first input is inverted.
- If only multiplication of inputs is required, then a numeric value equal to the number of inputs can be supplied instead of multiply-divide characters.
- If only one vector is input, then a single multiply or divide operation will collapse the vector using the specified operation.
Dialog Box Parameters

- Enter */ characters or the number of inputs - Enter as many multiply or divide characters as there are inputs. For multiplication only, you can enter the number of inputs since this is the default operation.
- Output data type and scaling - Specify the output data type and scaling via the dialog box, or inherit the data type and scaling from the driving block or by back propagation.
- Output data type - Any data type supported by the Fixed-Point Blockset.
- Output scaling - Radix point-only or slope/bias scaling. These scaling modes are available only for generalized fixed-point data types.
- Lock output scaling so autoscaling tool can't change it - If checked, the output scaling is locked. This feature is available only for generalized fixed-point output.
- Round toward - Rounding mode for the fixed-point output.
- Saturate to max or min when overflows occur - If checked, fixed-point overflows saturate. Otherwise, they wrap.
- Override data type(s) with doubles - If checked, the output data type is overridden with doubles.
- Log minimums and maximums - If checked, minimum and maximum simulation values are logged to the workspace.
Characteristics
| Characteristic | Description |
|---|---|
| Input Port | Any data type supported by the blockset |
| Output Port | Any data type supported by the blockset |
| Direct Feedthrough | Yes |
| Sample Time | Inherited |
| Scalar Expansion | Yes |
| States | 0 |
| Vectorized | Yes |