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

    %% Modify Implicit Surface After Creation
% Plot an implicit surface and assign the implicit surface object to the
% variable |fs|. 

f = @(x,y,z) 1/x.^2 - 1/y.^2 + 1/z.^2;
fs = fimplicit3(f)

%%
% Use |fs| to access and modify properties of the implicit surface after it
% is created. For example, show only the positive _x_ values by setting the
% |XRange| property to |[0 5]|. Remove the lines by setting the |EdgeColor|
% property to |'none'|. Add transparency by setting the |FaceAlpha|
% property to |0.8|.

fs.XRange = [0 5];
fs.EdgeColor = 'none';
fs.FaceAlpha = 0.8;