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

surf(peaks);
colormap('hsv');

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

c = hsv;
c = flipud(c);
colormap(c);

% Copyright 2012 The MathWorks, Inc.