%% Display Sphere with Different Types of Shading
% Starting in R2019b, you can display a tiling of plots using the tiledlayout and nexttile functions. Call the tiledlayout function to create a 2-by-2 tiled chart layout. Call the nexttile function to create the axes. Then display three different spheres using different types of shading.

tiledlayout(2,2)
nexttile
sphere(16)
title('Faceted Shading (Default)')

nexttile
sphere(16)
shading flat
title('Flat Shading')

nexttile
sphere(16)
shading interp
title('Interpolated Shading')

% Copyright 2019 The MathWorks, Inc.