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

    %% Modify Image After Creation
% Plot a line, and then create an image on top of the line. Return the image
% object.

% Copyright 2015 The MathWorks, Inc.


plot(1:3)
hold on
C = [1 2 3; 4 5 6; 7 8 9];
im = image(C);

%%
% Make the image semitransparent so that the line shows through the image.
im.AlphaData = 0.5;