x=-10:5:10;y=-10:5:10;[X,Y]=meshgrid(x,y)z=sin(X)+cos(Y)subplot(1,2,1)mesh(X,Y,z)subplot(1,2,2)surf(X,Y,z)
x=-10:0.5:10; y=-10:0.5:10; [X,Y]=meshgrid(x,y) z=sin(X)+cos(Y) subplot(1,2,1) mesh(X,Y,z) subplot(1,2,2) surf(X,Y,z)
不够细