problem in matrix dimension

조회 수: 2 (최근 30일)
houssem alimi
houssem alimi 2019년 1월 4일
댓글: Bob Thompson 2019년 1월 4일
error in matrix dimension , this code use extended kalman filter for fusion radar and lidar sensor
  댓글 수: 3
Bob Thompson
Bob Thompson 2019년 1월 4일
Can you post the entire error message please?
houssem alimi
houssem alimi 2019년 1월 4일
Error using *
Inner matrix dimensions must agree.
Error in extkflid (line 64)
X = X+ K*Y-(H_Lidar*X)

댓글을 달려면 로그인하십시오.

채택된 답변

Bob Thompson
Bob Thompson 2019년 1월 4일
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
houssem alimi
houssem alimi 2019년 1월 4일
for obtaining sensor fusion thanks to extended kalman filter
Bob Thompson
Bob Thompson 2019년 1월 4일
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.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by