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_0036: Default variant

ID: Title

na_0036: Default variant

Priority

Recommended

Scope

NA-MAAB

MATLAB Versions

All

Description

All Variant subsystems and models should be configured so that one subsystem is always selected. This can be achieved by doing one of the following:

  • Using a default variant.

  • Defining conditions that exhaustively cover all possible values of the conditional variables. For example, defining conditions for true and false values of a Boolean.

Correct

Correct: Assumes FUNC and INLINE are Boolean

Incorrect: No active subsystem ifFUNC not equal to 1 or 2.

Rationale

  • Readability

  • Code Generation

  • Simulation

Last Changed

V3.0

Model Advisor Check

By Task > Modeling Standards for MAAB > Model Architecture > Check use of default variants

For check details, see Check use of default variants.

Introduced in R2013a