Main Content

State name clash

Diagnostic behavior when more than one state has same name

Model Configuration Pane: Diagnostics


This parameter specifies whether the software issues a warning when multiple states in a model have the same name. The software checks for name duplication across both continuous and discrete states.

This diagnostic 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.


warning (default) | none

The software issues a warning.


The software does not issue a diagnostic.

Recommended Settings

DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precautionNo impact

Programmatic Use

Parameter: StateNameClashWarn
Value: 'none' | 'warning'
Default: 'warning'

Version History

Introduced in R2008a