[b758a2]: / matlab / isPos.m

Download this file

11 lines (11 with data), 209 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
function b = isPos(X,Y,M,d)
for i=1:size(M,1)
r = (X-M(i,1))^2 + (Y-M(i,2))^2;
if r < d*d
b = true;
return
end
b = false;
return
end
end