Main Content

jc_0141: Usage of the Switch blocks

Since R2020a

Guideline Publication

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

Sub ID Recommendations

  • NA-MAAB — a

  • JMAAB — a

MATLAB Versions



Sub ID a

The second Switch block input condition shall be a logical type. Switchblock parameter Criteria for passing first input shall be set to u2~=0.

Custom Parameter

Not Applicable


Sub ID a:

  • It is easier to understand specifications when the configuration is applied by using Simulink blocks rather than by writing operation expressions in blocks.


Model Advisor check: Check usage of Switch blocks (Simulink Check)

Last Changed


Version History

Introduced in R2020a