www.gusucode.com > graphics 案例源码程序 matlab代码 > graphics/ModifyImageAfterCreation2Example.m

    %% Modify Image After Creation
% Create an image and return the image object, |im|. Then, make the image
% semitransparent by setting the |AlphaData| property of the image object.

% Copyright 2015 The MathWorks, Inc.


C = [1 2 3; 4 5 6; 7 8 9];
im = imagesc(C);

%%
im.AlphaData = .5;