problem in matrix dimension

3 Ansichten (letzte 30 Tage)
houssem alimi
houssem alimi am 4 Jan. 2019
Kommentiert: Bob Thompson am 4 Jan. 2019
error in matrix dimension , this code use extended kalman filter for fusion radar and lidar sensor
  3 Kommentare
Bob Thompson
Bob Thompson am 4 Jan. 2019
Can you post the entire error message please?
houssem alimi
houssem alimi am 4 Jan. 2019
Error using *
Inner matrix dimensions must agree.
Error in extkflid (line 64)
X = X+ K*Y-(H_Lidar*X)

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Bob Thompson
Bob Thompson am 4 Jan. 2019
I think that your issue is with K*Y. As best I can tell, K is 3x3, while Y is 2x2, so it is not possible to do matrix multiplication with two arrays of these sizes.
  6 Kommentare
houssem alimi
houssem alimi am 4 Jan. 2019
for obtaining sensor fusion thanks to extended kalman filter
Bob Thompson
Bob Thompson am 4 Jan. 2019
Yeah, I am unfamiliar with what that means.
Again, my suggestion is to go back and double check that the math and matrix sizes are what they should be based on hand calculations. If everything does compare with hand calculations, then I would suggest backing it out a bit further, and checking the original math.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Tags

Produkte

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by