• Remix
  • Share
  • New Entry

on 12 Oct 2022
  • 7
  • 43
  • 0
  • 2
  • 242
t = 0:0.001:2*pi;
p = -pi/2:0.001:pi/2;
x = cos(t);
y = sin(t);
eg = 'EdgeColor';
h = 0.5;
w = 0.1;
patch(cos(p),sin(p),'k'), hold on
patch(h*x,h+h*y,'k')
patch(h*x,-h+h*y,'w',eg,'w')
patch(w*x,h+w*y,'w',eg,'w')
patch(w*x,-h+w*y,'k')
plot(x,y,'k')
axis equal off
Image
Remix Tree