Main Content

Single simulation output


Enable the single-output format of the sim command.

Check the single simulation output option in the import/export pane, to get simulation outputs in a Simulink.SimulationOutput object when simulating interactively. Simulation outputs include signal, state, output, DSM logging, and scope and toworkspace block logging.

Category: Data Import/Export


Default: on

When you enable this option:

  • Simulink® returns all simulation outputs within a single Simulink.SimulationOutput object, providing that you simulate by click Run.

  • Specify the variable name of the single output object which will contain the simulation outputs. Use the text field next to the check box to specify this name. If the name is not specified, it defaults to out.


  • To use the Logging intervals parameter, you must select Single simulation output.

  • The method who of the Simulink.SimulationOutput object returns the list of variables that the object contains.

Command-Line Information

Parameter: ReturnWorkspaceOutputs
Value: 'on' | 'off'
Default: 'on'
Parameter: ReturnWorkspaceOutputsName
Type: character vector
Value: character vector
Default: 'out'

Recommended Settings

DebuggingNo impact
TraceabilityNo impact

No recommendation

Safety precaution

No recommendation

Related Topics