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_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

Introduced in R2013a

Was this topic helpful?