Main Content

Units inconsistency messages

Diagnostic action to take when model contains unit inconsistencies

Model Configuration Pane: Diagnostics

Description

The Units inconsistency messages parameter specifies the diagnostic action to take when the model contains inconsistent units.

Settings

warning (default) | none
warning

The software issues a warning when the model contains unit inconsistencies.

none

The software does not issue a diagnostic when the model contains unit inconsistencies.

Recommended Settings

The table summarizes recommended values for this parameter based on considerations related to code generation.

ApplicationSetting
DebuggingNo recommendation
TraceabilityNo recommendation
EfficiencyNo recommendation
Safety precautionNo recommendation

Programmatic Use

Parameter: UnitsInconsistencyMsg
Type: string | character vector
Values: "warning" | "none"
Default: "warning"

Version History

Introduced in R2016a