%% Downsample the Cool Colormap
% Get a downsampled version of the cool colormap containing only ten colors. Then display the contours of the peaks function by applying the colormap and interpolated shading.

c = cool(10);
surf(peaks);
colormap(c);
shading interp;

% Copyright 2012 The MathWorks, Inc.