www.gusucode.com > graphics 案例源码程序 matlab代码 > graphics/DisplaySphereWithDifferentTypesOfShadingExample.m
%% Display Sphere with Different Types of Shading % Plot the |sphere| % function and use different types of shading. % Copyright 2015 The MathWorks, Inc. figure subplot(2,2,1) sphere(16) title('Faceted Shading (Default)') subplot(2,2,2) sphere(16) shading flat title('Flat Shading') subplot(2,2,3) sphere(16) shading interp title('Interpolated Shading')