jc_0905: Usable characters for data names in 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
Data names defined within MATLAB functions shall not use underscores at the end.
Not Applicable
Sub ID b
Consecutive underscores shall not be used in data names defined within MATLAB functions.
Not Applicable
Sub ID c
Data names defined within a MATLAB functions shall not be the same as reserved MATLABwords.
Not Applicable
Rationale
Sub ID a:
Deviation reduces readability. Since underscores are commonly used as word separators, it may look like a typographical error.
Sub ID b:
Deviation reduces readability.
Sub ID c:
Deviation reduces readability.
Deviating from common practices may lead to unexpected problems.
Note
The MATLAB limit for the number of characters you can use in data names defined within MATLAB functions is 2048.
Verification
Model Advisor check: Check data names in MATLAB functions (Simulink Check)
Last Changed
R2024b
See Also
Version History
Introduced in R2024b