Documentation Center

  • Trial Software
  • Product Updates

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 jh_0042: Required software

Last Changed

V3.0

Was this topic helpful?