用matlab 画(x^2 + (9/4)y^2 + z^2 - 1)^3 - x^2z^3 - (9/80)y^2z^3 = 0的图应该怎么编代码?

来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/25 15:44:22
用matlab画(x^2+(9/4)y^2+z^2-1)^3-x^2z^3-(9/80)y^2z^3=0的图应该怎么编代码?用matlab画(x^2+(9/4)y^2+z^2-1)^3-x^2z^3-

用matlab 画(x^2 + (9/4)y^2 + z^2 - 1)^3 - x^2z^3 - (9/80)y^2z^3 = 0的图应该怎么编代码?
用matlab 画(x^2 + (9/4)y^2 + z^2 - 1)^3 - x^2z^3 - (9/80)y^2z^3 = 0的图应该怎么编代码?

用matlab 画(x^2 + (9/4)y^2 + z^2 - 1)^3 - x^2z^3 - (9/80)y^2z^3 = 0的图应该怎么编代码?
[x,y,z]=meshgrid(linspace(-1.5,1.5));
f=@(x,y,z)(x.^2 + (9/4)*y.^2 + z.^2 - 1).^3 - x.^2.*z.^3 - (9/80)*y.^2.*z.^3;
p=patch(isosurface(x,y,z,f(x,y,z),0)); view(3);axis equal
set(p,'FaceVertexCData',jet(size(get(p,'faces'),1)) ,'FaceColor','flat','EdgeColor','none');