Main Content

jc_0732: Distinction between state names, data names, and event names

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

An identical name shall not be used for states, data (inputs and outputs, local data, constants, parameters, data store memory), or event names in a single Stateflow Chart (Stateflow).

Custom Parameter

Not Applicable

Example — Correct

Example — Incorrect

Names are duplicated.


Sub ID a:

  • Using unique names prevent misunderstanding.


Model Advisor check: Check uniqueness of Stateflow state, data and event names (Simulink Check)

Last Changed


Version History

Introduced in R2020a