Matlab中mesh和surf的区别 Matlab中surf()和mesh()的区别: [X,Y] = meshgrid(-2:.2:2, -4:.4:4); Z = X .* exp(-X.^2 - Y.^2); figure(1) surf(X,Y,Z) figure(2) mesh(X,Y,Z) surf 黑色线,彩色面 mesh 彩色线,白色面