%% Reverse the Colormap
% Plot a surface and assign the autumn colormap.

surf(peaks);
colormap('autumn');

%
% Get the autumn colormap array and reverse the order. Then apply the modified colormap to the surface.

c = autumn;
c = flipud(c);
colormap(c);

% Copyright 2012 The MathWorks, Inc.