Main Content


Delete track managed by adsbReceiver



deleted = deleteTrack(receiver,ID) deletes the track specified by ID in the ADS-B receiver object, receiver. You must update the ADS-B receiver object at least once before you are able to delete an ADS-B track.


collapse all

Create an ADS-B receiver.

receiver = adsbReceiver;

Define ADS-B messages generated from transponder AAF123.

airbornePositionMessage = struct('ICAO','AAF123','Time', NaN,...
    'Latitude',70, 'Longitude',30,'Altitude',2000,...

Call the receiver to generate tracks.

tracks = receiver(airbornePositionMessage,0)
tracks = 
  objectTrack with properties:

             TrackID: 1
            BranchID: 0
         SourceIndex: 0
          UpdateTime: 0
                 Age: 1
               State: [6x1 double]
     StateCovariance: [6x6 double]
     StateParameters: [1x1 struct]
       ObjectClassID: 0
          TrackLogic: 'History'
     TrackLogicState: 1
         IsConfirmed: 1
           IsCoasted: 0
      IsSelfReported: 1
    ObjectAttributes: [1x1 struct]

Delete the track.

tf = deleteTrack(receiver,1)
tf = logical

Input Arguments

collapse all

ADS-B receiver, specified as an adsbReceiver object.

Track identifier, specified as a track ID or an International Civil Aviation Organization (ICAO) ID. The track ID is an integer, where as an ICAO ID is a six-element character vector or a six-character string.

Output Arguments

collapse all

Track deletion indicator, returned as 1 or 0. If the track specified by the ID input existed and was successfully deleted, this argument returns as 1. If the track did not exist, a warning is issued and this argument returns as 0.

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.

Version History

Introduced in R2021a