Main Content

State name clash

Diagnostic action to take when more than one state has same name

Model Configuration Pane: Diagnostics

Description

The State name clash parameter specifies the diagnostic action to take when multiple states in a model have the same name. The software checks for name duplication across both continuous and discrete states.

This parameter applies only for simulations configured to log states using a format other than array. State names are not used when you do not log states or when you log states using the Array format. When you use the Array format or do not log states, the software never issues a diagnostic.

Settings

warning (default) | none
warning

The software issues a warning.

none

The software does not issue a diagnostic.

Programmatic Use

Parameter: StateNameClashWarn
Type: string | character vector
Value: "none" | "warning"
Default: "warning"

Version History

Introduced in R2008a