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.
Maximum number of characters for data names in MATLAB function.
Note
The MATLAB limit for the number of characters you can use in data names defined within MATLAB functions is 2048.
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