4.33333

4.3 | 9 ratings Rate this file 32 Downloads (last 30 days) File Size: 7.21 KB File ID: #13479
image thumbnail

An Intuitive Introduction to Kalman Filter

by Alex Blekhman

 

23 Dec 2006 (Updated 26 Dec 2006)

A simplified tutorial example to the usage of Kalman Filter

| Watch this File

File Information
Description

The purpose of this tutorial is to illustrate the usage of Kalman Filter by a simple example.

The problem: Predict the position and velocity of a moving train 2 seconds ahead, having noisy measurements of its positions along the previous 10 seconds (10 samples a second).

Ground truth: The train is initially located at the point x = 0 and moves along the X axis with constant velocity V = 10m/sec, so the motion equation of the train is X = X0 + V*t. Easy to see that the position of the train after 12 seconds will be x = 120m, and this is what we will try to find.

Approach: We measure (sample) the position of the train every dt = 0.1 seconds. But, because of imperfect apparature, weather etc., our measurements are noisy, so the instantaneous velocity, derived from 2 consecutive position measurements (remember, we measure only position) is innacurate. We will use Kalman filter as we need an accurate and smooth estimate for the velocity in order to predict train's position in the future.

We assume that the measurement noise is normally distributed, with mean 0 and standard deviation SIGMA

Acknowledgements
This submission has inspired the following:
Learning the Kalman Filter in Simulink v2.1, Active Contours implementation & test platform GUI
MATLAB release MATLAB 7.1.0 (R14SP3)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (13)
25 Jan 2007 Dimitri Shvorob

Correction: this is not a 'tutorial', but 'one commented program'. Of course, it can still be helpful. Note on programming: 'close all,
clear all' is bad form.

25 Jan 2007 Dimitri Shvorob

And anyway, what does it add to Michael Kleder's submission? (Nothing).

09 Feb 2007 Alireza Key

it's good but i think u could add more comment and more explain ... but it's useful for every who want have quick start in Kalman Filter...
tanks alex

21 Mar 2007 Daniel Porta

Dimitri u always say that close all and clear all is a bad habit... explain which one is a good one then!

26 Sep 2007 nuri agab

thanks

05 Oct 2007 s k  
13 Oct 2007 ihsan ul haq

good tutorial for Kalman Filter.

03 Dec 2007 David Adam

Excellent intro tu KFiltering!

14 Dec 2007 OnlyD Log

Helpful indeed!

18 Jun 2008 dan lon

ok

12 Feb 2009 Alex Feinman

Clear demonstration of basic capabilities of the Kalman filter.

23 Feb 2011 Justin Fernandes

thank you. Very helpful.

07 Oct 2011 Alex

This was SUPER helpful. Thanks!

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
filter design Alex Blekhman 22 Oct 2008 08:53:52
filter analysis Alex Blekhman 22 Oct 2008 08:53:52
kalman filter estimation motion linear train tutorial signal mea Alex Blekhman 22 Oct 2008 08:53:52

Contact us at files@mathworks.com