天天看点

[Matlab]三维曲面绘制实例

[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)');
           
[Matlab]三维曲面绘制实例

转载于:https://www.cnblogs.com/CQBZOIer-zyy/p/5932023.html