Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

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 usage of Switch blocks

For check details, see Check usage of Switch blocks (Simulink Verification and Validation).

Introduced in R2010a

Was this topic helpful?