Main Content

ar_0002: Usable characters for folder names

Since R2020a

Guideline Publication

Control Algorithm Modeling Guidelines - Using MATLAB®, Simulink®, and Stateflow®

Sub ID Recommendations

  • NA-MAAB — a, b, c, d, e, f

  • JMAAB — a, b, c, d, e, f

MATLAB Versions

All

Rule

Sub ID a

Only these character types shall be used in folder names:

  • Single-byte alphanumeric characters (a-z, A-Z, 0-9)

  • Single-byte underscore (_)

Line breaks, single-byte spaces, double-byte characters, and control characters shall not be used.

Custom Parameter

Applicable folder for the rule

Example — Incorrect

Sub ID b

The folder name shall not use numbers at the beginning.

Custom Parameter

Applicable folder for the rule

Example — Incorrect

Sub ID c

The folder name shall not use underscores at the beginning.

Custom Parameter

Applicable folder for the rule

Example — Incorrect

Sub ID d

The folder name shall not use underscores at the end.

Custom Parameter

Applicable folder for the rule

Example — Incorrect

Sub ID e

The folder name shall not use consecutive underscores.

Custom Parameter

Applicable folder for the rule

Example — Incorrect

Sub ID f

The folder name shall not consist solely of a single reserved MATLAB word.

Custom Parameter

Applicable folder for the rule

Example — Incorrect

Rationale

Sub IDs a, b, c, d, e, f:

  • Readability is impaired.

  • Deviation from the rule can cause unexpected issues.

Verification

Model Advisor check: Check folder names (Simulink Check)

Last Changed

R2024b

See Also

Version History

Introduced in R2020a