Main Content

clearSignals

R2026b

Clear signals plotted on subplots of Simulink.sdi.CustomSnapshot object

Description

clearSignals(snap) clears plotted signals from all subplots in the Simulink.sdi.CustomSnapshot object snap. Using clearSignals does not affect any subplots or signals in your open Simulation Data Inspector session.

example

Examples

collapse all

Suppose you have configured a custom snapshot object, snapObj, to generate plots of particular signals. To clear all subplots in the Simulink.sdi.CustomSnapshot object, use clearSignals.

clearSignals(snapshotObj)

Clearing signals from the custom snapshot object does not affect plots in the Simulation Data Inspector. Clearing signals also does not affect other properties of the Simulink.sdi.CustomSnapshot. For example, the number of subplots does not change when you clear the signals.

Input Arguments

collapse all

Custom snapshot settings, specified as a Simulink.sdi.CustomSnapshot object.

Version History

Introduced in R2018a