Main Content

jc_0201: Usable characters for subsystem 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 structural subsystem 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

Not Applicable

Example — Incorrect

Single-byte spaces, double-byte, and symbol characters are used.

Sub ID b

A structural subsystem name shall not use numbers at the beginning.

Custom Parameter

Not Applicable

Example — Incorrect

Sub ID c

A structural subsystem name shall not use an underscore at the beginning.

Custom Parameter

Not Applicable

Example — Incorrect

Sub ID d

A structural subsystem name shall not use an underscore at the end.

Custom Parameter

Not Applicable

Example — Incorrect

Sub ID e

A structural subsystem name shall not use consecutive underscores.

Custom Parameter

Not Applicable

Example — Incorrect

Sub ID f

A structural subsystem shall not consist solely of a single reserved MATLAB word.

Custom Parameter

Not Applicable

Example — Incorrect

Rationale

Sub IDs a, b, f:

  • Cannot generate code using the configured structural subsystem name.

Sub IDs c, d, e:

  • May not be able to generate code using the configured structural subsystem name.

Verification

Model Advisor check: Check subsystem names (Simulink Check)

Last Changed

R2020a

Version History

Introduced in R2020a