%% Delete track in multiObjectTracker
% Create a track using detections in a multiObjectTracker tracker.

tracker = multiObjectTracker 
detection1 = objectDetection(0,[1;1;1]);
detection2 = objectDetection(1,[1.1;1.2;1.1]);
tracker(detection1,0);
tracker(detection2,1)

% Delete the first track.

deleted1 = deleteTrack(tracker,1)

% Uncomment the following to delete a nonexistent track. A warning will be issued.

% deleted2 = deleteTrack(tracker,2)

% Copyright 2019 The MathWorks, Inc.