📄 distance.m
字号:
% DISTANCE Distance change between object and goal when pushing box.
% Copyright (c) 1998-2000 Jiming Liu and Jianbing Wu
close all;
clear all;
FLname='d:\users\jbwu\circ\result\circ01';
eval(['load ' FLname ';']);
BeginPoint=1;
EndPoint=118;
TheDistance=[];
OHistory=ObjectHistory(BeginPoint:EndPoint,:);
GHistory=GoalHistory(BeginPoint:EndPoint,:);
for mm=BeginPoint:EndPoint
OGDiff=OHistory(mm,:)-GHistory(mm,:);
TheDistance=[TheDistance sqrt(OGDiff(1)*OGDiff(1)+OGDiff(2)*OGDiff(2))];
end;
plot(TheDistance);
xlabel('t');
ylabel('Distance between Object and Goal');
grid on;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -