⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 obsup.m

📁 Kalman Filtering Theory and Practice, Using MATLAB
💻 M
字号:
function [x,P] = obsup[x,P,z,H,R]
%
% function [x,P] = obsup[x,P,z,H,R]
%
% Performs Kalman filter observational update of state vector, x
% and the associated covriance matrix of estimation uncertainty, P
%
% Inputs  x is n-by-1 (column) state vector
%         P is n-by-n symmetric pos. def. matrix
%         z is m-by-1 measurement (observation) vector
%         H is m-by-n measurement sensitivity matrix
%         R is m-by-m covariance matrix of meas. uncertainty
% Outputs x,P updated by observation y
%
PHt = P*H';
K   = PHt/(H*PHt+R);
x   = x + K*(y-H*x);
P   = P - K*PHt';

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -