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

    %% 3-D Surface Plot of Symbolic Function
% Plot the real part of ${\rm tan}^{-1}(x + iy)$ over the default range $-5<x<5$ and
% $-5<y<5$.
syms f(x,y)
f(x,y) = real(atan(x + i*y));
fsurf(f)