Main Content

na_0019: Restricted variable names

Sub ID Recommendations

  • NA-MAAB — a, b

  • JMAAB — Not supported

MATLAB Versions



Sub ID a

Reserved C variable names shall not be used as variable names in MATLAB® code. For example, avoid using const, TRUE, FALSE, infinity, nil, double, single, or enum in MATLAB code.

Custom Parameter

Not Applicable

Sub ID b

Variable names that conflict with MATLAB functions, such as conv, shall not be used.

Custom Parameter

Not Applicable


Sub IDs a, b:

  • Improves readability of the code

  • Code generation may not be possible.


Model Advisor check: Check usage of restricted variable names (Simulink Check)

Last Changed


Version History

Introduced in R2020a