Documentation

jc_0141: Use of the Switch block

ID: Title

jc_0141: Use of the Switch block

Priority

Strongly recommended

Scope

MAAB

MATLAB Versions

All

Prerequisites

None

Description

  • The switch condition, input 2, must be a Boolean value.

  • The block parameter, Criteria for passing first input, should be set to u2~=0.

Correct

Incorrect

Rationale

  • Readability

  • Verification and Validation

  • Workflow

  • Code Generation

Last Changed

V2.2

Model Advisor Check

By Task > Modeling Standards for MAAB > Simulink > Check for proper use of Switch blocks

For check details, see Check usage of Switch blocks.

Was this topic helpful?