• Remix
  • Share
  • New Entry

on 31 Oct 2021
  • 6
  • 32
  • 0
  • 0
  • 280
%
figure('Color','k')
hold
Current plot held
% R700 Self polygon
xv=[.1;.417;.067;.895;.302;.74;.41;.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),'.y',x(~in),y(~in),'.r','LineWidth', 15,'MarkerSize',2.25)
%plot(xv,yv,x(on),y(on),'y')
axis off
Image
Remix Tree