%% Rotate Colormap with Specific Duration and Increment
% Create a surface plot that uses the default colormap. Then rotate the colormap by one row for five seconds.

surf(peaks);
colorbar
spinmap(5,1)

% Copyright 2012 The MathWorks, Inc.