Main Content

jc_0794: Division in Simulink

Since R2020a

Guideline Publication

Control Algorithm Modeling Guidelines - Using MATLAB®, Simulink®, and Stateflow®

Sub ID Recommendations

  • NA-MAAB — a

  • JMAAB — a

MATLAB Versions

All

Rule

Sub ID a

When using division, implementation of the algorithm shall avoid division by zero.

Custom Parameter

Not Applicable

Rationale

Sub ID a:

  • Deviation from the rule can cause unintended operation and code generation results.

Model Advisor Check

Check for division by zero in Simulink (Simulink Check)

Last Changed

R2021a

Version History

Introduced in R2020a