%% Create and Display Labeled Detections on Bird's-Eye Plot
% Create a bird's-eye plot with an x-axis range from 0 to 90 meters and a y-axis range from –35 to 35 meters. Create a radar detection plotter that displays detections in blue.

bep = birdsEyePlot('XLim',[0 90],'YLim',[-35 35]);
detPlotter = detectionPlotter(bep,'DisplayName','Radar detections', ...
    'MarkerFaceColor','b');

%
% Display the positions and velocities of three labeled detections.

positions = [30 5; 30 -10; 30 15];
velocities = [-10 0; -10 3; -10 -4];
labels = {'D1','D2','D3'};
plotDetection(detPlotter,positions,velocities,labels);

% Copyright 2012 The MathWorks, Inc.