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

    %% Modify Surface After Creation
% Plot the parametric surface
% 
% $$\matrix{x = e^{-|u|/10} \sin(5|v|) \cr y = e^{-|u|/10} \cos(5|v|) \cr z = u.}$$
% 
% Assign the parameterized function surface object to a variable.

x = @(u,v) exp(-abs(u)/10).*sin(5*abs(v));
y = @(u,v) exp(-abs(u)/10).*cos(5*abs(v));
z = @(u,v) u;
fs = fsurf(x,y,z)

%%
% Change the plotting interval for |u| to |[-30 30]| by setting the |URange| property of
% object. Add transparency to the surface by setting the |FaceAlpha|
% property to a value between 0 (transparent) and 1 (opaque).
fs.URange = [-30 30];
fs.FaceAlpha = .5;