Contents

Simulink.sdi.clear

Clear all data from Simulation Data Inspector

Syntax

Simulink.sdi.clear

Description

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

Examples

Remove all runs 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.clear;

% The number of runs is now zero.
runCount = Simulink.sdi.getRunCount()
Was this topic helpful?