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

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

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