%% Display Sphere with Different Types of Shading
% Plot the sphere function and use different types of shading.

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')

% Copyright 2015 The MathWorks, Inc.