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

    %% Plot Function Over Default Range
% Plot the symbolic function |f(x,y) = real(atan(x + i*y))| over the
% default range |-2*pi < x < 2*pi|, |-2*pi < y < 2*pi|.
%%
% Create the symbolic function.

% Copyright 2015 The MathWorks, Inc.

syms f(x,y)
f(x,y) = real(atan(x + i*y));
%%
% Plot this function using |ezsurf|.
ezsurf(f)