Main Content

jc_0775: Terminating junctions in flow charts

Since R2020a

Guideline Publication

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

Sub ID Recommendations

  • NA-MAAB — a1/a2

  • JMAAB — a1/a2

MATLAB Versions

All

Rule

Sub ID a1

Only one terminating junction shall be used.

Custom Parameter

Not Applicable

Example — Correct

Example — Incorrect

There is more than one terminating junction.

Sub ID a2

One terminating junction with a single unconditional transition as the input shall be used.

Custom Parameter

Not Applicable

Example — Correct

Example — Incorrect

There is more than one terminating junction and input.

Rationale

Sub IDs a1, a2

  • One terminating junction improves understanding of the logic end point.

  • Using a consistent style for terminating junction improves readability.

Verification

Model Advisor check: Check terminal junctions in Stateflow (Simulink Check)

Last Changed

R2020a

Version History

Introduced in R2020a