필터 지우기
필터 지우기

I need help implementing Extended Kalman Filter

조회 수: 9 (최근 30일)
Umberto Tozzi
Umberto Tozzi 2024년 3월 25일
답변: Muskan 2024년 6월 24일 6:32
Dear everyone,
I need to implement the Simulink Extended Kalman Filter block but I don't know how.
I have the simulink scheme
this is the system code inside the matlab function
A = [0 1 0 0;
0 -2*(Cf+Cf)/(m*V) 2*(Cf+Cf)/m -2*(Cf*lf-Cf*lr)/(m*V);
0 0 0 1;
0 -2*(Cf*lf-Cf*lr)/(Iz*V) 2*(Cf*lf-Cf*lr)/Iz -2*(Cf*lf^2+Cf*lr^2)/( Iz*V)];
B1 = [0 2*Cf/m 0 2*Cf*lf/Iz]';
B2 = [0 -2*(Cf*lf-Cf*lr)/(m*V)-V 0 -2*(Cf*lf^2+Cf*lr^2)/(Iz*V)]';
C = [1 0 0.7 0];
xdot = A*x + B1*u + B2*psi;
y=C*x
the state is not measurable and at the input the V is not constant, but a sine, I should implement an Extended Kalman Filter in Simulink to estimate the state of this system.
Could anyone help me how to do it?
  댓글 수: 2
Sanju
Sanju 2024년 4월 22일
편집: Sanju 2024년 4월 22일
can you please share your model for better understanding.
Umberto Tozzi
Umberto Tozzi 2024년 4월 23일
편집: Umberto Tozzi 2024년 5월 13일
@Sanju of course, this is my model. Could you help me implement Extended Kalman Filter in Simulink to estimate system state?
The model only gives me the y. The x in question is not measurable.

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

답변 (1개)

Muskan
Muskan 2024년 6월 24일 6:32
Hello Umberto,
The formulation of an extended Kalman is based on the linearization of the state equation and measurement equation. Here is the officicial documentation on how to implement Extended Kalman Filter in MATLAB: https://in.mathworks.com/help/driving/ug/extended-kalman-filters.html
I hope this helps!

Community Treasure Hunt

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

Start Hunting!

Translated by