Main Content

jc_0770: Position of transition label

Since R2020a

Guideline Publication

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

Sub ID Recommendations

  • NA-MAAB — No recommendations

  • JMAAB — a1/a2/a3

MATLAB Versions

All

Rule

Sub ID a1

Transition labels are positioned near the source of the transition line.

Custom Parameter

Not Applicable

Example — Correct

Transition labels are positioned at the point of origin.

Example — Incorrect

The positioning of transition labels is inconsistent and do not correspond to the transition line.

Sub ID a2

Transition labels are positioned near the center of the transition line.

Custom Parameter

Not Applicable

Example — Correct

Transition labels are positioned near the center of the transition line.

Example — Incorrect

The positioning of transition labels is inconsistent and do not correspond to the transition line.

Sub ID a3

Transition labels are positioned as follows:

  • Transition labels including transition conditions shall be placed near the source of transition lines.

  • Transition labels without transition conditions shall be placed near the destination of transition lines.

Exception

Not applicable for comment-only transition labels.

Custom Parameter

Not Applicable

Example — Correct

Transition labels including transition conditions are placed near sources of transition lines and those without transition conditions are placed near destinations of transition lines.

Example — Incorrect

Transition labels without transition conditions are not placed near destinations of transition lines.

Rationale

Sub IDs a1, a2:

  • Consistent positioning of transition labels makes the correspondence between label and line easier to understand.

Verification

Model Advisor check: Check placement of Label String in Transitions (Simulink Check)

Last Changed

R2024b

Version History

Introduced in R2020a