Documentation

Simulink.sdi.exportRun

Create a Simulink.SimulationData.Dataset object of the data in the specified run

Syntax

ds = Simulink.sdi.exportRun(runID)

Description

ds = Simulink.sdi.exportRun(runID) creates a Simulink.SimulationData.Dataset object of the run in the Simulation Data Inspector identified by runID.

Examples

collapse all

%load example system
load_system('sldemo_fuelsys')

%simulate system and create a run in the Simulation Data Inspector
simOut = sim('sldemo_fuelsys', 'SaveFormat', 'StructureWithTime');

runID = Simulink.sdi.createRun(simOut);

%export run to Simulink.SimulationData.Dataset object
ds = Simulink.sdi.exportRun(runID);

Input Arguments

collapse all

Number identifying a run in the Simulation Data Inspector.

Output Arguments

collapse all

Simulink.SimulationData.Dataset object containing the data of the run corresponding to the runID.

Introduced in R2017a

Was this topic helpful?