Main Content

db_0146: Block layout in conditional subsystems

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



Sub ID a

Conditional input blocks shall be positioned at the top of the subsystem.

Custom Parameter

Not Applicable

Example — Correct

Example — Incorrect

Sub ID b

The position of these blocks shall be defined by the project:

Custom Parameter

Location layout


Sub IDs a, b:

  • Unifying the internal and external layout of the conditional subsystem improves readability of the model.


Model Advisor check: Check position of conditional blocks and iterator blocks (Simulink Check)

Last Changed


Version History

Introduced in R2020a