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

    %% Specify Plotting Interval of Surface Plot
% Plot $\sin(x) + \cos(y)$ over $-\pi < x < \pi$ and $-5 < y < 5$ by
% specifying the plotting interval as the second argument of |fsurf|.

syms x y
f = sin(x) + cos(y);
fsurf(f, [-pi pi -5 5])