[x,y] = meshgrid(-::);
z = sin(sqrt(x.^+y.^))./sqrt(x.^+y.^+eps);
subplot(,,);
mesh(x,y,z);
title('mesh(x,y,z)');
subplot(,,);
meshc(x,y,z);
title('meshc(x,y,z)');
subplot(,,);
meshz(x,y,z)
title('meshz(x,y,z)');
subplot(,,);
surf(x,y,z)
title('surf(x,y,z)');

轉載于:https://www.cnblogs.com/CQBZOIer-zyy/p/5932023.html