imm = initekfimm(detection)
initializes a constant velocity (CV), constant acceleration (CA), and a constant turn (CT)
trackingIMM (imm) object based on information
provided in an objectDetection object,
detection.
The function initializes a constant velocity state
[x; vx;
y; vy;
z;
vz].
A 3-D position measurement in rectangular frame is provided. For example, x = 1, y = 3, and z = 0. Use a 3-D position measurement noise [1 0.4 0; 0.4 4 0; 0 0 1].
Use initekfimm to create a trackingIMM filter initialized at the provided position and using the measurement noise defined above.
imm = initekfimm(detection);
Check the values of the state and measurement noise. Verify that the filter state, imm.State, has the same position components as detection measurement, detection.Measurement.
imm.State
ans = 6×1
1
0
3
0
0
0
Verify that the filter measurement noise, imm.MeasurementNoise, is the same as the detection.MeasurementNoise values.
A 3-D position measurement in spherical frame is provided. For example: az = 40, el = 6, r = 100, rr = 5. Measurement noise is diag([2.5, 2.5, 0.5, 1].^2).
Use the MeasurementParameters to define the frame. You can leave out other fields of the MeasurementParameters struct, and they will be completed by default values. In this example, sensor position, sensor velocity, orientation, elevation, and range rate flags are default.
Constant velocity (CV), constant acceleration (CA), and a constant turn (CT)
trackingIMM (imm) object based on information
provided in detection, returned as a trackingIMM
object.
Extended Capabilities
C/C++ Code Generation Generate C and C++ code using MATLAB® Coder™.
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.