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

% Copyright 2012 The MathWorks, Inc.