clear all
[x,y,z]=meshgrid(-10:0.2:10,-10:0.2:10,-10:0.2:10);
f=(x.^2./4+y.^2./3+z.^2./9-1);
[d,m]=isosurface(x,y,z,f,0);
patch('faces',d,'vertices',m,'facevertexcData',jet(length(m)),'facecolor','k','edgecolor','flat');
grid on;view(3);axis equal;
xlabel('X'),ylabel('Y'),zlabel('Z');title('x^2/4+y^2/3+z^2/9=1');
给你个大鸭蛋,哇咔咔!!!