www.gusucode.com > graphics 案例源码程序 matlab代码 > graphics/DSurfacePlotOfExpressionExample.m

    %% 3-D Surface Plot of Expression
% Plot the expression $\sin(x)+\cos(y)$ over the default interval $-5<x<5$
% and $-5<y<5$.

fsurf(@(x,y) sin(x)+cos(y))