Main Content

State name clash


Select the diagnostic action to take when a name is used for more than one state in the model.

Category: Diagnostics


Default: warning


Simulink® software takes no action.


Simulink software displays a warning.


  • This diagnostic applies for continuous and discrete states during simulation.

  • This diagnostic applies only if you save states to the MATLAB® workspace using the format Structure or Structure with time. If you do not save states in structure format, the state names are not used, and therefore the diagnostic will not warn you about a naming conflict.

Command-Line Information

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

Recommended Settings

DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precautionNo impact

Related Topics