jc_0804: Prohibited use of recursive calls with graphical functions

Sub ID Recommendations

  • NA-MAAB — a

  • JMAAB — a

MATLAB Versions

All

Rule

Sub ID a

Calls from a graphical function to itself and calls between graphical functions shall be prohibited.

Custom Parameter

Not Applicable

Example — Correct

Processing is performed within the graphical function.

Example — Incorrect

The graphical function is calling itself.

Graphical functions are calling each other.

Rationale

Sub ID a:

  • Readability decreases. Deviation from the rule can cause unintended overflows and infinite loops.

Verification

Adherence to this modeling guideline cannot be verified by using a Model Advisor check.

Last Changed

R2020a

Introduced in R2020a