plot_feature_loci.m
来自「虽然粒子滤波算法可以作为解决SLAM问题有效手段」· M 代码 · 共 26 行
M
26 行
function plot_feature_loci(data)
%function plot_feature_loci(data)
%
% From the offline stored data of the simulator, plot the
% paths of the feature estimates over time.
%
hold on
N= length(data.state);
maxf= length(data.state(N).x) - 3;
flocus= zeros(maxf,N);
iold= maxf;
for i = N:-1:1
ii= length(data.state(i).x)- 3;
if ii>0, flocus(1:ii, i)= data.state(i).x(4:end); end
if ii<iold
for j=(ii+1):2:iold
jj= (i+1):N;
plot(flocus(j, jj), flocus(j+1, jj), 'k')
end
iold= ii;
end
end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?