na_0031: Definition of default enumerated value

ID: Title

na_0031: Definition of default enumerated value

Priority

Recommended

Scope

NA-MAAB

MATLAB Versions

R2010b and later

Prerequisites

None

Description

The default value of the enumeration should always be explicitly defined for the enumerated type.

Rationale

  • Readability

  • Verification and Validation

  • Code Generation

Last Changed

V3.0

Model Advisor Check

By Task > Modeling Standards for MAAB > Simulink > Check usage of enumerated values

For check details, see Check usage of enumerated values (Simulink Check).

Introduced in R2013a