绘制函数z = x2 + y2所表示的三维网格图

[X,Y] = meshgrid(-3:0.1:3); %定义要画的范围和间隔

Z=(X.*X+Y.*Y);

mesh(X,Y,Z)


原文地址:https://www.cnblogs.com/ma6174/p/2291623.html