在线状态估计
在命令行和 Simulink® 中使用线性和非线性卡尔曼滤波器估计模型参数
您可以使用实时数据和线性、扩展或无迹卡尔曼滤波算法来估计系统的状态。您可以使用 System Identification Toolbox™ 库的 Estimators 子库中的 Simulink 模块执行在线状态估计。然后,您可以使用 Simulink Coder™ 为这些模块生成 C/C++ 代码,并将此代码部署到嵌入式目标。还可以在命令行中执行在线状态估计,并使用 MATLAB® Compiler™ 或 MATLAB Coder 部署您的代码。
函数
extendedKalmanFilter | Create extended Kalman filter object for online state estimation |
unscentedKalmanFilter | 创建无迹卡尔曼滤波器对象,用于在线状态估计 |
particleFilter | Particle filter object for online state estimation |
correct | Correct state and state estimation error covariance using extended or unscented Kalman filter, or particle filter and measurements |
residual | Return measurement residual and residual covariance when using extended or unscented Kalman filter |
predict | Predict state and state estimation error covariance at next time step using extended or unscented Kalman filter, or particle filter |
initialize | 初始化粒子滤波器的状态 |
clone | 复制在线状态估计对象 |
generateJacobianFcn | 使用自动微分生成扩展卡尔曼滤波器的 MATLAB 雅可比函数 (自 R2023a 起) |
模块
| Kalman Filter | 估计离散时间或连续时间线性系统的状态 |
| Extended Kalman Filter | Estimate states of discrete-time nonlinear system using extended Kalman filter |
| Particle Filter | Estimate states of discrete-time nonlinear system using particle filter |
| Unscented Kalman Filter | Estimate states of discrete-time nonlinear system using unscented Kalman filter |
主题
在线估计基础知识
- What Is Online Estimation?
Estimate states and parameters of a system in real-time. - Extended and Unscented Kalman Filter Algorithms for Online State Estimation
Description of the underlying algorithms for state estimation of nonlinear systems.
在 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. - Validate Online State Estimation in Simulink
Validate online state estimation that is performed using Extended Kalman Filter and Unscented Kalman Filter blocks. - Parameter and State Estimation in Simulink Using Particle Filter Block
This example demonstrates the use of the Particle Filter block in System Identification Toolbox™. - 基于扩展卡尔曼滤波器的绕回测量值状态估计
本示例演示了如何使用扩展卡尔曼滤波算法,对涉及环绕角度测量值的三维跟踪进行非线性状态估计。
在命令行中执行在线状态估计
- Nonlinear State Estimation Using Unscented Kalman Filter and Particle Filter
Use the unscented Kalman filter algorithm for nonlinear state estimation for the van der Pol oscillator. - 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.
疑难解答
Troubleshoot Online State Estimation
Troubleshoot online state estimation performed using extended and unscented Kalman filter algorithms.