• Remix
  • Share
  • New Entry

on 17 Oct 2021
  • 0
  • 17
  • 0
  • 0
  • 276
r=10;a=120;b=90;t=[0:pi/r:r*pi]';
f=sqrt(a^2-b^2);q=12.5*pi/180;e=exp(-t/20);
x=e.*(a*cos(t)-f);y=e.*(b*cos(q)*sin(t));z=e.*(b*sin(q)*sin(t));
box on;hold on;plot3(x,y,z,'k');
[X,Y,Z]=sphere(r);
surf(X*r,Y*r,Z*r);colormap('winter');
shading interp;
axis([-18 6 -12 12 -6 6]*r);
view([117 37]);
Remix Tree