Quantcast

Documentation Center

  • Trial Software
  • Product Updates

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

Was this topic helpful?