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

surf(peaks);
colormap('winter');

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

c = winter;
c = flipud(c);
colormap(c);

% Copyright 2012 The MathWorks, Inc.