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

All

Rule

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

Rationale

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.

Verification

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

Last Changed

R2020a

Version History

Introduced in R2020a