db_0129: Stateflow transition appearance
Since R2020a
Guideline Publication
Control Algorithm Modeling Guidelines - Using MATLAB®, Simulink®, and Stateflow®
Sub ID Recommendations
NA-MAAB — a, b, c, d, e
JMAAB — a, b, c, d, e
MATLAB Versions
All
Rule
Sub ID a
Transition lines shall not cross over one another.
Not Applicable
Sub ID b
Transition lines shall not overlap other transition lines.
Not Applicable
Sub ID c
Transition lines shall not cross over states.
Not Applicable
Sub ID d
Transition lines shall be drawn vertically or horizontally.
Diagonal lines can be used for flow charts.
Not Applicable
Sub ID e
Unnecessary connective junctions shall not be used.
Not Applicable
Rationale
Sub ID a:
Difficult to understand the relationship between states when transition lines cross.
Sub ID b:
Difficult to understand the relationship between states when transition lines overlap.
Sub ID c:
Difficult to understand the relationship between states when transition lines cross over states.
Sub ID d:
Consistent application of transition lines improves readability.
Sub ID e:
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
R2020a
See Also
Transition Between Operating Modes (Stateflow)
Version History
Introduced in R2020a