Main Content


List of sensor indices



indices = sensorIndices(tracker) returns the SensorIndex values of the trackingSensorConfiguration objects contained in the SensorConfigurations property of the tracker.


collapse all

Define two trackingSensorConfiguration objects.

config1 = trackingSensorConfiguration(1);
config2 = trackingSensorConfiguration(2);

Create a PHD tracker with config1 and config2.

tracker = trackerPHD('SensorConfigurations',{config1;config2});

Obtain the sensor indices.

indices = sensorIndices(tracker)
indices = 1x2 uint32 row vector

   1   2

Input Arguments

collapse all

PHD tracker, specified as a trackerPHD object.

Output Arguments

collapse all

Indices of sensors, return as a row-vector of nonnegative integers.

Extended Capabilities

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

Introduced in R2020b