This example shows how to perform Kalman filtering. Both a steady state filter and a time varying filter are designed and simulated below.
www.mathworks.com