%% 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.

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])

% Copyright 2015 The MathWorks, Inc.