Main Content

jc_0795: Usable characters for Stateflow data names

Sub ID Recommendations

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

  • JMAAB — a, b, c, d

MATLAB Versions

All

Rule

Sub ID a

Stateflow data {name} shall not use underscores at the beginning.

Custom Parameter

Not Applicable

Sub ID b

Stateflow data {name} shall not use underscores at the end.

Custom Parameter

Not Applicable

Sub ID c

Stateflow data {name} shall not use consecutive underscores.

Custom Parameter

Not Applicable

Sub ID d

Stateflow data {name} shall not consist solely of a single reserved MATLAB word.

Custom Parameter

Not Applicable

Rationale

Sub IDs a, b, c, d:

  • Readability is impaired.

  • Deviation from the rule may result in unintended code behavior.

Verification

Model Advisor check: Check usable characters for Stateflow data names (Simulink Check)

Last Changed

R2020a

See Also

Introduced in R2020a