Main Content

clearData

Clear data from specific plotter of bird’s-eye plot

Description

example

clearData(pl) clears data belonging to the plotter pl associated with a bird’s-eye plot. This function can clear data from these plotters:

To clear data from all plotters belonging to a bird's-eye plot, use the clearPlotterData function.

Examples

collapse all

Create a bird's-eye plot. Add a track plotter and detection plotter to the bird's-eye plot.

bep = birdsEyePlot('XLim',[0,90],'YLim',[-35,35]);
tPlotter = trackPlotter(bep,'DisplayName','Tracks');
detPlotter = detectionPlotter(bep,'DisplayName','Radar detections');

Figure contains an axes object. The axes object with xlabel X (m), ylabel Y (m) contains 2 objects of type line. One or more of the lines displays its values using only markers These objects represent Tracks, Radar detections.

Create and display a set of tracks on the bird's-eye plot.

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

Figure contains an axes object. The axes object with xlabel X (m), ylabel Y (m) contains 5 objects of type line, text. One or more of the lines displays its values using only markers These objects represent Tracks, Radar detections.

Create and display a set of detections on the bird's-eye plot.

detPos = [30 5 4; 30 -10 2; 50 15 1];
detLabels = {'D1','D2','D3'};
plotDetection(detPlotter,detPos,detLabels)

Figure contains an axes object. The axes object with xlabel X (m), ylabel Y (m) contains 8 objects of type line, text. One or more of the lines displays its values using only markers These objects represent Tracks, Radar detections.

Clear the track plotter data from the bird's-eye plot.

clearData(tPlotter)

Figure contains an axes object. The axes object with xlabel X (m), ylabel Y (m) contains 5 objects of type line, text. One or more of the lines displays its values using only markers These objects represent Tracks, Radar detections.

Input Arguments

collapse all

Plotter belonging to a birdsEyePlot object, specified as a plotter object. You can clear data from any plotter except coverageAreaPlotter.

Version History

Introduced in R2017a