?? create_elipse.m
字號(hào):
function ElipseHand = Create_Elipse(y,H,P,R)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Create_Elipse - draws the Kalman covariance matrix volume in 2-D
% Input:
% y - the observation at time t
% H - the observation matrix
% P - the covariance matrix
% R - the observation covariance
% Output:
% ElipseHand - handle to the elipse object
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% paramater
VolFactor = 3; % sqrt(gamma);
t = 0:.1:2*pi+.1;
circle = [cos(t);sin(t)]*VolFactor;
S = H*P*H' + R;
[u,sing,v] = svd(S);
elipse = u*sing*circle;
figure(gcf);
%hold on;
ElipseHand = plot(elipse(1,:)+y(1), elipse(2,:)+y(2),'r');
%drawnow;
%hold off;
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -