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.
Not Applicable
Transition labels are positioned at the point of origin.
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.
Not Applicable
Transition labels are positioned near the center of the transition line.
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.
Not applicable for comment-only transition labels.
Not Applicable
Transition labels including transition conditions are placed near sources of transition lines and those without transition conditions are placed near destinations of transition lines.
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
See Also
Transition Between Operating Modes (Stateflow)
Version History
Introduced in R2020a