用 matlab做曲面x^2⼀4+y^2⼀3+z^2⼀9=1的 代码

代码
2024-12-02 15:24:19
推荐回答(2个)
回答(1):

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');

 

给你个大鸭蛋,哇咔咔!!!

回答(2):