Design Case Studies    

Time-Varying Design

Although the Control System Toolbox does not offer specific commands to perform time-varying Kalman filtering, it is easy to implement the filter recursions in MATLAB. This section shows how to do this for the stationary plant considered above.

First generate noisy output measurements

Given the initial conditions

you can implement the time-varying filter with the following for loop.

You can now compare the true and estimated output graphically.

The first plot shows the true response (dashed line) and the filtered response (solid line). The second plot compares the measurement error (dash-dot) with the estimation error (solid).

The time-varying filter also estimates the covariance errcov of the estimation error at each sample. Plot it to see if your filter reached steady state (as you expect with stationary input noise).

From this covariance plot, you can see that the output covariance did indeed reach a steady state in about five samples. From then on, your time-varying filter has the same performance as the steady-state version.

Compare with the estimation error covariance derived from the experimental data. Type

This value is smaller than the theoretical value errcov and close to the value obtained for the steady-state design.

Finally, note that the final value and the steady-state value of the innovation gain matrix coincide.


  Time-Varying Kalman Filter References