Main Content

Check usable characters for Stateflow data names

Check ID: mathworks.jmaab.jc_0795

Guideline: jc_0795: Usable characters for Stateflow® data names


Checks if Stateflow data names adhere to the following guideline standards.

  • Do not begin or end with an underscore.

  • Do not contain consecutive underscores.

  • Do not coincide with reserved MATLAB® words.


Reserved MATLAB words include the following:

This check requires a Simulink® Check™ license.

Check Parameterization

This check contains sub-checks that correspond to the sub IDs specified in the MAB and JMAAB modeling guidelines. You can use the Model Advisor Configuration Editor to specify which sub IDs (one or multiple) to execute.

For reference, the MAB guideline sub-ID(s) that are recommended for use by the NA-MAAB and JMAAB modeling standards organizations are:

  • NA-MAAB — a, b, c, d

  • JMAAB — a, b, c, d

Results and Recommended Actions

Guideline Sub IDConditionRecommended Action
jc_0795_a: Underscore at the beginning.One or more Stateflow data names begin with an underscore. Rename the Stateflow data.
jc_0795_b: Underscore at the end.One or more Stateflow data names end with an underscore. Rename the Stateflow data.
jc_0795_c: Consecutive underscores.One or more Stateflow data names have consecutive underscores.Rename the Stateflow data.
jc_0795_d: Single reserved MATLAB word.The Stateflow data name is a reserved MATLAB word. Use a different name for the Stateflow data.

Capabilities and Limitations

  • JMAAB guideline, Version 5.1 limitation: This check does not flag the Stateflow data names with underscore at the beginning of the name. (Sub ID a)

  • Runs on library models.

  • Allows exclusions of charts.

  • Analyzes content in masked subsystems. By default, the input parameter Look under masks is set to graphical.

  • Analyzes content of library-linked blocks. By default, the input parameter Follow links is set to on.