Main Content

Save complete SimState in final state


Save complete SimState in final state is not recommended. Use Save final operating point instead.


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


Default: Off, xFinal


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.


Simulink software exports the final logged states during simulation.


  • 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.


This parameter is enabled by Final states.

Programmatic Use

Parameter: SaveCompleteFinalSimState
Value: 'on' | 'off'
Default: 'off'

Recommended Settings

DebuggingNo impact
TraceabilityNo impact
EfficiencyNo recommendation
Safety precautionNo recommendation

Related Topics