%% Color a Plane with the Colorcube Colormap
% Create a surface plot of a plane.

[X,Y] = meshgrid(-10:1:10);
Z = X + Y;
surf(X,Y,Z);

%
% Get the colorcube colormap with 75 entries. Then use it to color the plane.

c = colorcube(75);
colormap(c);

% Copyright 2012 The MathWorks, Inc.