- /
-
Piet Abstract 1
on 30 Oct 2021
- 4
- 26
- 9
- 0
- 280
%
figure('Color' ,[.7 .7 .6 ])
hold on
% Self polygon
intersect = 8
xv = rand(intersect,1);
yv = rand(intersect,1);
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),'.y',x(~in),y(~in),'.r','LineWidth',15,'MarkerSize',2.5)
%plot(xv,yv,x(in),y(in),'^y',x(~in),y(~in),'.r',...
axis off