%% Set Mapping of Alpha Data into Alphamap
% Create an image. Vary the transparency across the image based on the
% color values. By default, the image clamps the transparency values
% between 0 and 1. Values less than 0 are completely transparency and
% values greater than 1 are completely opaque. Instead, transform the
% transparency values to span the alphamap using the |alpha scaled|
% command.

% Copyright 2015 The MathWorks, Inc.


imagesc(peaks)
alpha color
alpha scaled