Main Content

jc_0906: Length restriction of data names in MATLAB Functions

Since R2024b

Guideline Publication

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

Sub ID Recommendations

  • NA-MAAB — a

  • JMAAB — a

MATLAB Versions

All

Rule

Sub ID a

The number of characters for data names defined within a MATLAB function shall be less than or equal to configured limit. The default is 63.

Custom Parameter

The maximum number of characters for data names in MATLAB function is 63.

Rationale

Sub ID a:

  • Deviation reduces readability.

  • Deviation makes it difficult to maintain the integrity of the model and code.

Verification

Model Advisor check: Check the length of data names in MATLAB functions (Simulink Check)

Last Changed

R2024b

See Also

Reserved Keywords (Embedded Coder)

Version History

Introduced in R2024b