天天看點

[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