Variable measurement length for trackingEKF
Ältere Kommentare anzeigen
I have the following issue where a protected property (pN) inside the trackingEKF is set when using the "distance" function.
I have a scenario where available measurements vary and therefore I set the measurement function and noise accordingly. The issue comes from a protected property that validates if my "correct" step have the right dimensions.
E.g.
I initialize with 4 measurements and associate with the "distance" function. pN is then set to 4. If the association is correct I want to include these.
In the next step I change the EKF property MeasurementFcn and MeasurementNoise to a dimension of 7. This does not update the protected "pN" propery inside ExtendedKalmanFilter.
In the correction step I get the following error:
"Error using coder.internal.assert (line 33)
Expected z_matrix to be a vector of 4 elements or a matrix of 4 columns."
Any suggestions on how to bypass this without initializing a new filter?
Akzeptierte Antwort
Weitere Antworten (1)
Honglei Chen
am 10 Apr. 2019
0 Stimmen
Could you elaborate what kind of system you are trying to model? In general the dimension of the measurement doens't change over time but it looks like you have a special use case you want to address? Thanks.
1 Kommentar
Albin Westin
am 11 Apr. 2019
Kategorien
Mehr zu Tracking and Sensor Fusion finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!