This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

na_0019: Restricted Variable Names

ID: Title

na_0019: Restricted Variable Names

Priority

Mandatory

Scope

NA-MAAB

MATLAB Versions

All

Prerequisites

None

Description

To improve the readability of the MATLAB® code, avoid using reserved C variable names. For example, avoid using const, const, TRUE, FALSE, infinity, nil, double, single, or enum.

Avoid using variable names that conflict with MATLAB Functions, for example conv.

Note

Reserved keywords are defined in the Simulink® Coder™ documentation.

Rationale

  • Readability

  • Verification and Validation

See Also

  • Derived from NASA Orion style guideline jh_0042: Required software

Last Changed

V3.0

Model Advisor Check

By Task > Modeling Standards for MAAB > MATLAB Functions > Check usage of reserved variable names

For check details, see Check usage of restricted variable names.

Introduced in R2013a