Documentation

Simulink.sdi.clear

Clear all data from Simulation Data Inspector

Syntax

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()

Related Examples

Introduced in R2011b

Was this topic helpful?