📄 predict_area.asv
字号:
function [ Ppre ] = predict_area(loc1, loc2)
Ppre = ones(1,25);
if loc2(1,1) - loc1(1,1) >= 0
up = 1;
else
up = -1;
end
if loc2(2,1) - loc1(2,1) >= 0
right = 1;
else
right = -1;
end
switch up
case 1
Ppre(11:25) = Ppre(11:25) + 1;
case -1
Ppre(1:15) = Ppre(1:15) + 1;
otherwise
Ppre = ones(1,25);
end
switch right
case 1
for i = 1:5
end
case -1
otherwise
Ppre = ones(1,25);
end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -