deleteTrack
Description
Examples
Delete Track From adsbReceiver
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,... 'Vnorth',250,'Veast',0,'ClimbRate',-1);
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 ObjectClassProbabilities: 1 TrackLogic: 'History' TrackLogicState: 1 IsConfirmed: 1 IsCoasted: 0 IsSelfReported: 1 ObjectAttributes: [1x1 struct]
Delete the track.
tf = deleteTrack(receiver,1)
tf = logical
1
Input Arguments
receiver
— ADS-B receiver
adsbReceiver
object
ADS-B receiver, specified as an adsbReceiver
object.
ID
— Track identifier
positive integer | six-element character vector | six-character string scalar
Track identifier, specified as a track ID or an International Civil Aviation Organization (ICAO) ID. The track ID is an integer, whereas an ICAO ID is a six-element character vector or a six-character string.
Output Arguments
deleted
— Track deletion indicator
1
| 0
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
See Also
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)