- /
-
It's a Bird No - It's an Airplane
on 7 Oct 2022
- 1
- 9
- 0
- 0
- 280
figure('Color',[.5 .5 .5])
hold
% R700 Self polygon
xv=[.1;.417;.067;.895;.3;.74;.4;.345];
yv=[.97;.772;.576;.745;.685;.375;.185;.283];
xv=[xv;xv(1)]; yv=[yv;yv(1)];
x=rand(5e4,1);y=rand(5e4,1);
[in,on] = inpolygon(x,y,xv,yv);
plot(xv,yv,x(in),y(in),'yo',x(~in),y(~in),'.m','LineW', 15,'MarkerSize',2.25)
%plot(xv,yv,x(on),y(on),'y')
axis off