jc_0610: Operator order for multiplication and division block
Control Algorithm Modeling Guidelines - Using MATLAB®, Simulink®, and Stateflow®
Sub ID Recommendations
NA-MAAB — No recommendations
JMAAB — a, b
Sub ID a
* mark shall be used for the first input to a
multiplication and division Product block.
/ mark is used for the first input.
Sub ID b
The multiplication and division Product block shall not have more than two inputs.
The block has three inputs.
Sub ID a:
When checking the block, the input order of the expression and block is reversed, which impairs readability.
For floating point numbers, the code is generated according to the operation order in the block --
((1÷1st input)) × 2nd input. However, if division is performed later, then the number of operations can be reduced.
Sub ID b:
The order of operations is clearly defined.
Model Advisor check: Check operator order of Product blocks (Simulink Check)
Introduced in R2020a