Documentation

Simulink.sdi.deleteRun

Delete run from Simulation Data Inspector

Syntax

  • Simulink.sdi.deleteRun(runID)
    example

Description

example

Simulink.sdi.deleteRun(runID) deletes a run associated with the run ID in the Simulation Data Inspector. Deleting the run removes all signal data included in the run. After deleting a run, the subsequent runs move up the list and the run index for each run changes. However, the unique run IDs remain the same.

Examples

collapse all

Remove Run from the Simulation Data Inspector

% Configure model 'slexAircraftExample' for logging and simulate
simOut = sim('slexAircraftExample','SaveOutput','on', ...
             'SaveFormat','StructureWithTime');

% Create a Simulation Data Inspector run
runID = Simulink.sdi.createRun('First Run','base',{'simOut'});

Simulink.sdi.deleteRun(runID);

Related Examples

Input Arguments

collapse all

runID — Unique run identifierinteger

A unique simulation run identifier, specified as an integer. The Simulink.sdi.createRun function creates a unique run ID. The run ID can also be accessed for a particular run using the Simulink.sdi.getRunIDByIndex function.

Introduced in R2011b

Was this topic helpful?