Main Content

状态估计

设计卡尔曼滤波器,估计系统运行期间的状态,生成代码和部署到嵌入式目标

您可以使用状态估计方法估计具有过程噪声和测量噪声的系统中的状态值。您可以使用 Control System Toolbox™ 提供的工具来设计线性稳态和时变卡尔曼滤波器。还可以使用扩展卡尔曼滤波器、无迹卡尔曼滤波器或粒子滤波器估计非线性系统的状态。

当有新数据可用时,在线状态估计算法会更新系统的状态估计。您可以使用实时数据以及线性和非线性卡尔曼滤波器算法来估计系统的状态。您可以使用 Simulink® 模块执行在线状态估计,使用 Simulink Coder™ 为这些模块生成 C/C++ 代码,并将这些代码部署到嵌入式目标。还可以在命令行中执行在线状态估计,并使用 MATLAB® Compiler™MATLAB Coder 部署您的代码。

函数

全部展开

kalmanDesign Kalman filter for state estimation
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 (自 R2019b 起)
initializeInitialize the state of the particle filter
cloneCopy online state estimation object
generateJacobianFcnGenerate MATLAB Jacobian functions for extended Kalman filter using automatic differentiation (自 R2023a 起)

模块

全部展开

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

主题

状态估计基础知识

  • 卡尔曼滤波
    执行卡尔曼滤波并仿真系统,以显示滤波器如何减少稳态和时变滤波器的测量误差。

在线估计

Simulink 中的状态估计

疑难解答

Troubleshoot Online State Estimation

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