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

    %% Set Surface Transparency Using _z_ Values
% Create a surface chart. Vary the transparency across the surface based on
% the _z_ values.

% Copyright 2015 The MathWorks, Inc.


s = surf(peaks);
alpha(s,'z')