Main Content

jc_0806: Detecting incorrect calculation results

Since R2020a

Guideline Publication

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

Sub ID Recommendations

  • NA-MAAB — a, b, c

  • JMAAB — a, b, c

MATLAB Versions

All

Rule

Sub ID a

Configuration parameter Division by singular matrix shall be set to Error.

Custom Parameter

Not Applicable

Sub ID b

Configuration parameter Inf or NaN block output shall be set to Error.

Custom Parameter

Not Applicable

Sub ID c

(R2014b and later) These configuration parameters shall be set to Error:

(R2010b to R2014a) Configuration parameter Detect overflow shall be set to Error.

Custom Parameter

Not Applicable

Rationale

Sub IDs a, b, c:

  • Allows detection of operations with invalid values.

Verification

Model Advisor check: Check diagnostic settings for incorrect calculation results (Simulink Check)

Last Changed

R2020a

Version History

Introduced in R2020a