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

    %% Add Image to Axes in 3-D View
% Create a surface plot. Then, add an image under the surface. |image|
% displays the image in the _xy_-plane.

% Copyright 2015 The MathWorks, Inc.


Z = 10 + peaks;
surf(Z)
hold on 
image(Z,'CDataMapping','scaled')