Main Content

jc_0700: Unused data in Stateflow block

Since R2020a

Guideline Publication

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

Sub ID Recommendations

  • NA-MAAB — a

  • JMAAB — a

MATLAB Versions



Sub ID a

Configuration parameter Unused data, events, messages, and functions shall be set to Warning or Error to prevent unused Stateflow data, events, and messages in the Stateflow block.

Custom Parameter

Not Applicable

Example — Correct

Example — Incorrect

Unused data is defined.


Sub ID a:

  • Unused data and events in the Stateflow block can affect maintainability and reusability.

  • Affects code as a declarative statement concerning unused data is inserted into the generated code.


Model Advisor check: Check for unused data in Stateflow Charts (Simulink Check)

Last Changed


Version History

Introduced in R2020a