?? obsup.m
字號(hào):
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';
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -