Three-dimensional image special effect
perspective
[X0,Y0,Z0]=sphere(30);
X=2*X0;Y=2*Y0;Z=2*Z0;
surf(X0,Y0,Z0);
shading interp
hold on,mesh(X,Y,Z),colormap(hot),hold off
hidden off
axis equal,axis off
image
Hollow
Use "Not a Number" NaN, the graphics were hollow handle.
P=peaks(30);P(18:20,9:15)=NaN;
surfc(P);colormap(summer)
light('position',[50,-10,5]),lighting flat
material([0.9,0.9,0.6,15,0.4])