Main Content

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

  • JMAAB — a, b

MATLAB Versions

All

Rule

Sub ID a

Transition lines shall be drawn vertically or horizontally.

Diagonal lines can be used for flow charts.

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

Version History

Introduced in R2020a