Main Content


Clear data from specific plotter of theater plot

Since R2021a



clearData(pl) clears data belonging to the plotter pl associated with a theater plot. This function clears data from plotters created by the following plotter methods:


collapse all

Create a theater plot. Add a track plotter and detection plotter to the theater plot.

tp = theaterPlot('XLim',[0,90],'YLim',[-35,35]);
tPlotter = trackPlotter(tp,'DisplayName','Tracks');
radarPlotter = detectionPlotter(tp,'DisplayName','Radar Detections');

Plot a set of tracks in the track plotter.

trackPos = [30, 15, 1; 60, -15, 1; 20, 5, 1];
trackLabels = {'T1','T2','T3'};
plotTrack(tPlotter, trackPos, trackLabels)

Plot a set of detections in the detection plotter.

detPos = [30, 5, 4; 30, -10, 2; 50, 15, 1];
detLabels = {'R1','R2','R3'};
plotDetection(radarPlotter, detPos, detLabels)

Delete the track plotter data.


Input Arguments

collapse all

Specific plotter belonging to a theater plot, specified as a plotter handle of theaterPlot.

Version History

Introduced in R2021a