- /
-
Moon
on 21 Oct 2022
- 48
- 129
- 2
- 1
- 278
rng(0,'twister')
craters(demo='moon')
hold on
[X,Y,Z]=cylinder(5:-.01:0,99);
s=surf(X,Y,Z*5-2,EdgeC='n',FaceC='i',FaceA='i',AlphaData=Z*45,AlphaDataMap='d',clip='off');
M=makehgtform('yrotate',pi/4);
s.Parent=hgtransform('Matrix',M);
colormap gray
material dull
m=[-1,1];
xlim(m)
ylim(m)
zlim(m)