www.gusucode.com > symbolic 源码程序 matlab案例代码 > symbolic/PlotAnExpressionOverTheDefaultRangeExample.m

    %% Specify Plotting Ranges
% Plot the symbolic expression |x^2 + y^2| over the range
% |-1 < x < 1|. Because you do not specify the range for the |y|-axis,
% |ezsurf| chooses it automatically.

% Copyright 2015 The MathWorks, Inc.

syms x y
ezsurf(x^2 + y^2, [-1, 1])
%%
% Specify the range for both axes.
ezsurf(x^2 + y^2, [-1, 1, -0.5, 1.5])