matlab 隐函数三维图问题我用的isosurface和 patch,我的程序是:function sita45[x,y,z]=meshgrid(linspace(-150,150,200),linspace(-150,150,200),linspace(-150,150,200));v=(3*x./(x+y+z)-1.13).^2+(3*y./(x+y+z)-0.75).^2+(3*z./(x+y+z)-1.13).^2
来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/25 16:03:18
matlab 隐函数三维图问题我用的isosurface和 patch,我的程序是:function sita45[x,y,z]=meshgrid(linspace(-150,150,200),linspace(-150,150,200),linspace(-150,150,200));v=(3*x./(x+y+z)-1.13).^2+(3*y./(x+y+z)-0.75).^2+(3*z./(x+y+z)-1.13).^2
matlab 隐函数三维图问题
我用的isosurface和 patch,我的程序是:
function sita45
[x,y,z]=meshgrid(linspace(-150,150,200),linspace(-150,150,200),linspace(-150,150,200));
v=(3*x./(x+y+z)-1.13).^2+(3*y./(x+y+z)-0.75).^2+(3*z./(x+y+z)-1.13).^2+0.28-(2/3)*(log(300./abs(x+y+z))).^2;
p=patch(isosurface(x,y,z,v,0));
view(3)
set(p,'FaceColor','blue','EdgeColor','none');
camlight; lighting phong
画出来是关于原点对称的,但是我只要正的那个图.约束条件应该是x+y+z>0,我就不知道应该怎样画了.而且有了这个条件以后log里面也不用加绝对值了.
注意:不能直接把x,y,z的范围分别改成正的,因为我并不是只要第一象限,可以改一下试试就明白.
matlab 隐函数三维图问题我用的isosurface和 patch,我的程序是:function sita45[x,y,z]=meshgrid(linspace(-150,150,200),linspace(-150,150,200),linspace(-150,150,200));v=(3*x./(x+y+z)-1.13).^2+(3*y./(x+y+z)-0.75).^2+(3*z./(x+y+z)-1.13).^2
function sita45
[x,y,z]=meshgrid(linspace(-150,150,200),linspace(-150,150,200),linspace(-150,150,200));
v=(3*x./(x+y+z)-1.13).^2+(3*y./(x+y+z)-0.75).^2+(3*z./(x+y+z)-1.13).^2+0.28-(2/3)*(log(300./abs(x+y+z))).^2;
v(x+y+z