%% Clear Specific Plotter Data from Bird's-Eye Plot
% 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');

%
% 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)

%
% 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)

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

clearData(tPlotter)

% Copyright 2018 The MathWorks, Inc.