This is machine translation

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

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

na_0028: Use of If-Then-Else Action Subsystem to Replace Multiple Switches

ID: Title

na_0028: Use of If-Then-Else Action Subsystem to Replace Multiple Switches

Priority

Recommended

Scope

NA-MAAB

MATLAB Versions

All

Description

The use of switch constructs should be limited, typically to 3 levels. Replace switch constructs that have more than 3 levels with an If-Then-Else action subsystem construct.

Incorrect

Rationale

  • Readability

Last Changed

V3.0

Model Advisor Check

Not applicable

Introduced in R2013a