This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

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: off

When you enable this option:

  • Simulink® returns all simulation outputs within a single Simulink.SimulationOutput object, providing that you simulate by choosing Simulation > Start from the model window.

  • 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