matlab画方程如何画出(x^2 + (9/4)y^2 + z^2 - 1)^3 - x^2z^3 - (9/80)y

matlab画方程
如何画出(x^2 + (9/4)y^2 + z^2 - 1)^3 - x^2z^3 - (9/80)y^2z^3 = 0的图像啊.谢谢各位了
爱苹果的tony 1年前 已收到1个回答 举报

0sbza 幼苗

共回答了14个问题采纳率:85.7% 举报

I did this before, so just give you the codes I wrote:
%%This file creates a 3-d red heart with an equation
[x,y,z]=meshgrid(linspace(-3,3,120));
f=(x.^2+(9*y.^2)./4+z.^2-1).^3-((9*y.^2).*(z.^3))./80-(x.^2).*(z.^3);
p=patch(isosurface(x,y,z,f,0));
set(p,'FaceColor','r')
grid on
daspect([1 1 1])
view(3)
camlight('right')
camlight('left')
camlight('headlight')
lighting phong
xlabel('X')
ylabel('Y')
zlabel('Z')
title('Heart of Math')

1年前

4
可能相似的问题
Copyright © 2024 YULUCN.COM - 雨露学习互助 - 16 q. 0.055 s. - webmaster@yulucn.com