• Remix
  • Share
  • New Entry

on 17 Oct 2021
  • 38
  • 31
  • 0
  • 0
  • 279
figure('Color','k')
m=50;
p=2*pi;
v=linspace(-p,p,m);
[x,y]=meshgrid(v);
z=x.^2+y.^2;
sphere
axis equal off
hold on
d=20;
k=@(x,y,z,c)surf(x,y,z,c,'EdgeC','none');
e=ones(m)*d;
for i=0:d:360
c=cosd(i);
s=sind(i);
k(x,y*c+z*-s,y*s+z*c,e)
end
[X,Y,Z]=sphere(49);
k(X*d,d*Y,d*Z,e)
camlight LEFT
view([-89.8 41.7])
Remix Tree