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

来源:学生作业帮助网 编辑:作业帮 时间:2024/11/15 10:18:34

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