Skip to content

Simple example of the Kalman Filter in MATLAB and Python

License

Notifications You must be signed in to change notification settings

gergelytakacs/planeKF

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

planeKF

Simple example of the Kalman Filter (KF) in MATLAB and Python

MATLAB and Python realization of the KF example explained by Michel van Biezen in his lecture series on the Kalman filter. See here for the full lecture series. The example starts at Lecture 27. It assumes that a plane is moving in one dimension with constant acceleration and no process noise.

  • There are no prerequisites to run the MATLAB example.
  • You must have numpy and matplotlib packages to run the Python example.
  • Possibly the Python example can be coded prettier, but I'm no a Python pro (yet;).

WARNING: Do not implement the `Pp=diag(diag(Pp))' (similar in Python) line outside this educational example. This is only to make the inversion and thus hand calculation demonstrated easier. A real application of the KF would not discard the off diagonal terms.