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

    %% Plot Contours of Symbolic Function
% Plot the contours of $f(x,y) = \sin(x) + \cos(y)$ over the default range of $-5 < x < 5$ and $-5 < y < 5$.
syms f(x,y)
f(x,y) = sin(x) + cos(y);
fcontour(f)