Documentation

This is machine translation

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

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

Simulink.sdi.deleteRun

Delete a run from the Simulation Data Inspector

Syntax

Simulink.sdi.deleteRun(runID)

Description

example

Simulink.sdi.deleteRun(runID) deletes a run associated with the run ID in the Simulation Data Inspector. Deleting the run removes all 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

% 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);

Input Arguments

collapse all

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?