Rank: 266701 based on 0 downloads (last 30 days) and 0 file submitted
photo

John D

E-mail

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Comments and Ratings by John D View all
Updated File Comments Rating
09 Jun 2010 Learning the Kalman Filter Basic Kalman filter, heavily commented, for beginners to Kalman filtering. Author: Michael Kleder

[continued from poste above]

As expected my matrices were wrong!

Thanks for the example!

09 Jun 2010 Learning the Kalman Filter Basic Kalman filter, heavily commented, for beginners to Kalman filtering. Author: Michael Kleder

[continued from poste above]

I have solved the problem by modifying the line to;

>> s.x = s.x + K' * (s.z-s.H*s.x); %added transpose of K

This was required as my observance vector (z) was a 2X1 matrix(and so is K and hence they couldn't be multiplied). Although the calculation now works I am still wondering why it doesnt work with the original code.

08 Jun 2010 Learning the Kalman Filter Basic Kalman filter, heavily commented, for beginners to Kalman filtering. Author: Michael Kleder

I get an error during the correction step.
>> s.x = s.x + K*(s.z-s.H*s.x);

Error using==>mtimes
Inner matrix dimensions must agree

The error makes sense given the size of my matrices but I don't see how they could be wrong. Is this code expected to not work for a system with two observer inputs (position and speed)?

Thanks for the help!
ps: let me know if you need more info - tried to keep it short.

Top Tags Applied by John D
basic kalman filter, discrete filter, files
Files Tagged by John D View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
27 Jan 2010 Published MATLAB Files 41 Complete GUI Examples 41 working GUIs to read and learn. Author: Matt Fig example, gui, examples, files, guide, how to 774 67
  • 4.97101
5.0 | 72 ratings
12 Oct 2005 Learning the Kalman Filter Basic Kalman filter, heavily commented, for beginners to Kalman filtering. Author: Michael Kleder basic kalman filter, kalman filter, discrete filter, linear, imtransform, filter analysis 414 98
  • 4.44944
4.4 | 91 ratings

Contact us