matlab怎么画 x^3 + y^3 + z^3 = r^3

来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/20 00:09:57
matlab怎么画x^3+y^3+z^3=r^3matlab怎么画x^3+y^3+z^3=r^3matlab怎么画x^3+y^3+z^3=r^3r=2;[x,y]=meshgrid(2*linspac

matlab怎么画 x^3 + y^3 + z^3 = r^3
matlab怎么画 x^3 + y^3 + z^3 = r^3

matlab怎么画 x^3 + y^3 + z^3 = r^3
r=2;
[x,y]=meshgrid(2*linspace(-r,r));
z=nthroot(r^3-x.^3-y.^3,3);
mesh(x,y,z)