State Estimation

Estimate states during system operation, generate code and deploy to embedded targets

Online state estimation algorithms update state estimates of your system when new data is available. You can estimate the states of your system using real-time data and linear and nonlinear Kalman filter algorithms. You can perform online state estimation using Simulink® blocks, generate C/C++ code for these blocks using Simulink Coder™, and deploy this code to an embedded target. You can also perform online state estimation at the command line, and deploy your code using MATLAB® Compiler™ or MATLAB Coder.

Functions

kalmanKalman filter design, Kalman estimator
kalmdDesign discrete Kalman estimator for continuous plant
estimForm state estimator given estimator gain
extendedKalmanFilterCreate extended Kalman filter object for online state estimation
unscentedKalmanFilterCreate unscented Kalman filter object for online state estimation
particleFilterParticle filter object for online state estimation
correctCorrect state and state estimation error covariance using extended or unscented Kalman filter, or particle filter and measurements
predictPredict state and state estimation error covariance at next time step using extended or unscented Kalman filter, or particle filter
residualReturn measurement residual and residual covariance when using extended or unscented Kalman filter
initializeInitialize the state of the particle filter
cloneCopy online state estimation object

Blocks

Kalman FilterEstimate states of discrete-time or continuous-time linear system
Extended Kalman FilterEstimate states of discrete-time nonlinear system using extended Kalman filter
Particle FilterEstimate states of discrete-time nonlinear system using particle filter
Unscented Kalman FilterEstimate states of discrete-time nonlinear system using unscented Kalman filter

Topics

Algorithms

Extended and Unscented Kalman Filter Algorithms for Online State Estimation

Description of the underlying algorithms for state estimation of nonlinear systems.

State Estimation at the Command Line

Kalman Filter Design

This example shows how to perform Kalman filtering.

Kalman Filtering

This case study illustrates Kalman filter design and simulation for both steady-state and time-varying Kalman filters.

Nonlinear State Estimation Using Unscented Kalman Filter and Particle Filter

Estimate nonlinear states of a van der Pol oscillator using the unscented Kalman filter algorithm.

Validate Online State Estimation at the Command Line

Validate online state estimation that is performed using extended and unscented Kalman filter algorithms.

Generate Code for Online State Estimation in MATLAB

Deploy extended or unscented Kalman filters, or particle filters using MATLAB Coder software.

State Estimation in Simulink

State Estimation Using Time-Varying Kalman Filter

Estimate states of linear systems using time-varying Kalman filters in Simulink.

Estimate States of Nonlinear System with Multiple, Multirate Sensors

Use an Extended Kalman Filter block to estimate the states of a system with multiple sensors that are operating at different sampling rates.

Parameter and State Estimation in Simulink Using Particle Filter Block

This example demonstrates the use of Particle Filter block in Control System Toolbox™.

Nonlinear State Estimation of a Degrading Battery System

This example shows how to estimate the states of a nonlinear system using an Unscented Kalman Filter in Simulink™.

Validate Online State Estimation in Simulink

Validate online state estimation that is performed using Extended Kalman Filter and Unscented Kalman Filter blocks.

Troubleshooting

Troubleshoot Online State Estimation

Troubleshoot online state estimation performed using extended and unscented Kalman filter algorithms.