www.gusucode.com > symbolic 源码程序 matlab案例代码 > symbolic/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.}$$
% 
% Specify an output to make |fcontour| return the plot object.
syms u v
x = exp(-abs(u)/10).*sin(5*abs(v));
y = exp(-abs(u)/10).*cos(5*abs(v));
z = u;
fs = fsurf(x,y,z)
%%
% Change the range of |u| to |[-30 30]| by using the |URange| property of |fs|. Set the 
% the line color to blue by using the |EdgeColor| property and specify
% white, dot markers by using the |Marker| and |MarkerEdgeColor| properties.
fs.URange = [-30 30];
fs.EdgeColor = 'b';
fs.Marker = '.';
fs.MarkerEdgeColor = 'w';