Save complete SimState in final state

Description

At the end of a simulation, Simulink® saves the complete set of states of the model, including logged states, to the specified MATLAB® variable.

Category: Data Import/Export

Settings

Default: Off, xFinal

On

Simulink software exports the complete set of final state data (i.e., the SimState) to the MATLAB workspace during simulation.

Specify the name of the MATLAB variable in which to store the values of the final states. See Importing and Exporting States for more information.

Off

Simulink software exports the final logged states during simulation.

Tips

  • You must select the Final states check box to enable the Save complete SimState in final state option.

  • Simulink saves the final states in a MATLAB workspace variable having the specified name.

Dependencies

This parameter is enabled by Final states.

Command-Line Information

Parameter: SaveCompleteFinalSimState
Value: 'on' | 'off'
Default: 'off'
Parameter: FinalStateName
Type: character vector
Value: any valid value
Default: 'xFinal'

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyNo recommendation
Safety precautionNo recommendation

Related Topics