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.clear

Clear all data from the Simulation Data Inspector

Syntax

Simulink.sdi.clear

Description

example

Simulink.sdi.clear clears all run data from the Simulation Data Inspector.

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.clear;

% The number of runs is now zero.
runCount = Simulink.sdi.getRunCount()

Introduced in R2011b

Was this topic helpful?