db_0129: Stateflow transition appearance
R2026bGuideline Publication
Control Algorithm Modeling Guidelines - Using MATLAB®, Simulink®, and Stateflow®
Sub ID Recommendations
NA-MAAB — a, b
JMAAB — a, b
MATLAB Versions
All
Rule
Sub ID a
Transition lines shall be drawn vertically or horizontally.
Diagonal transitions are allowed inside flowcharts only if they are a part of a loop.
Custom Parameter
Not Applicable
Example — Correct

Example — Incorrect

Sub ID b
Unnecessary connective junctions shall not be used.
Custom Parameter
Not Applicable
Example — Correct

Example — Incorrect

Rationale
Sub ID a:
Consistent application of transition lines improves readability.
Sub ID b:
Transitions can be difficult to understand when unnecessary connective junctions are used.
Verification
Model Advisor check: Check for Stateflow transition appearance (Simulink Check)
Last Changed
R2024b
See Also
Transition Between Operating Modes (Stateflow)
Version History
Introduced in R2020a