%% Enhance the Contrast of an Image
% Load clown to get image X and its associated colormap, map. Display the image produced by X and map.

load clown 
imagesc(X)
colormap(map)

%
% Use contrast to return a gray colormap that enhances the contrast of image X. Then update the display with the new colormap.

newmap = contrast(X);
colormap(newmap)

% Copyright 2015 The MathWorks, Inc.