Clear data from specific plotter of theater plot
clearData(pl)
example
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:
pl
detectionPlotter
orientationPlotter
platformPlotter
trackPlotter
trajectoryPlotter
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.
clearData(tPlotter)
handle
Specific plotter belonging to a theater plot, specified as a plotter handle of theaterPlot.
theaterPlot
clearPlotterData | findPlotter | theaterPlot
clearPlotterData
findPlotter
You have a modified version of this example. Do you want to open this example with your edits?