jc_0711: Division in Stateflow
Control Algorithm Modeling Guidelines - Using MATLAB®, Simulink®, and Stateflow®
Sub ID Recommendations
NA-MAAB — a1/a2
JMAAB — a1/a2
Sub ID a1
Variables, constants, or parameters in Stateflow Chart (Stateflow) shall not be used to perform division operations.
Division is performed outside of the Stateflow Chart.
Division occurs within the Stateflow Chart.
Sub ID a2
When division occurs in a Stateflow Chart (Stateflow), the process shall prevent division by zero.
The process is defined to prevent division by zero.
The process does not prevent division by zero.
Sub ID a1, a2:
Deviation from the rule can cause unintended operation and code generation results.
Model Advisor check: Adherence to this modeling guideline cannot be verified by using a Model Advisor check.
Fixed-Point Operations in Stateflow Charts (Stateflow)
Introduced in R2020a