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.

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

Was this topic helpful?