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.


Class: Simulink.SimulationOutput
Package: Simulink

Return SimulationMetadata object for simulation


mData = simout.getSimulationMetadata()


mData = simout.getSimulationMetadata() retrieves metadata information in a SimulationMetadata object from the simout SimulationOutput object.

Input Arguments

expand all

Simulation object to get metadata from, specified as a SimulationOutput object.

Output Arguments

expand all

SimulationMetadata object stored in the simout SimulationOutput object, returned as an object.


expand all

Simulate the vdp model and retrieve metadata information from the simulation.

Simulate the vdp model. Save the results of the Simulink.SimulationOutput object in simout

 simout = sim(bdroot,'ReturnWorkspaceOutputs','on');

Retrieve metadata information about this simulation using mData.

mData = 

  SimulationMetadata with properties:

        ModelInfo: [1x1 struct]
       TimingInfo: [1x1 struct]
    ExecutionInfo: [1x1 struct]
       UserString: ''
         UserData: []


A simpler alternative to use dot notation with the SimulationMetadata property. For example:


Another alternative is to display simulation metadata in the Variable Editor using one of these approaches:

  • Select the Show Simulation Metadata check box (which displays the data in a tree structure).

  • Double-click the SimulationMetadata row.

  • View the SimulationMetadata object.