Documentation

Simulink.sdi.deleteSignal

Delete a signal from the Simulation Data Inspector

Syntax

Simulink.sdi.deleteSignal(signalID)

Description

example

Simulink.sdi.deleteSignal(signalID) deletes a signal from the Simulation Data Inspector Inspect pane.

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'});

% Delete the first signal in this run
run = Simulink.sdi.getRun(runID);
signalID = run.getSignalIDByIndex(1)
Simulink.sdi.deleteSignal(signalID);

Input Arguments

collapse all

Unique number identifying a signal in a run, specified as an integer. To find the signal ID, you can use the method Simulink.sdi.Run.getSignalIDByIndex.

Introduced in R2016a

Was this topic helpful?