求会MATLAB的人帮我绘制一张图~~
a=4*3.14*10^(-7)/(4*3.14*(5*z^2+(2-2*x-y)^2))*((1+x-2*y)/sqrt((1-x)^2+y^2+z^2)+(4+x-2*y)/sqrt(x^2+(2-y)^2+z^2 ));
b=4*3.14*10^(-7)/(4*3.14*(13*z^2+(6+2*x-3*y)^2))*((4+3*x+2*y)/sqrt(x^2+(2-y)^2+z^2)+(9+3*x+2*y)/sqrt((3+x)^2+y^2+z^2));
c=4*3.14*10^(-7)/(4*3.14*(25*z^2+(12+4*x+3*y)^2))*((9-3*x+4*y)/sqrt((3+x)^2+y^2+z^2 )+(16-3*x+4*y)/sqrt(x^2+(4+y)^2+z^2 ));
d=4*3.14*10^(-7)/(4*3.14*(17*z^2+(4-4*x+y)^2))*((16-x-4*y)/sqrt(x^2+(4+y)^2+z^2 )+(1-x-4*y)/sqrt((1-x)^2+y^2+z^2 ));
输出图像的函数本体为(2*z*(a-b)+4*z*(d-c),z*(a-d)+3*z*(b-c),a*(2-2*x-y)+b*(6+2*x-3*y)+c*(12+4*x+3*y)+d*(4-4*x+y))~~~
我才学MATLAB不久 画不来… 请高人指点… 附上程序及图像… 谢谢~~~ 展开
clc
clear
x=-10:0.01:10;
y=-10:0.01:10;
z=-10:0.01:10;
a=4*3.14*10^(-7)./(4*3.14*(5*z.^2+(2-2*x-y).^2))*((1+x-2*y)/sqrt((1-x).^2+y.^2+z.^2)+(4+x-2*y)/sqrt(x.^2+(2-y).^2+z.^2 ));
b=4*3.14*10^(-7)./(4*3.14*(13*z.^2+(6+2*x-3*y).^2))*((4+3*x+2*y)/sqrt(x.^2+(2-y).^2+z.^2)+(9+3*x+2*y)/sqrt((3+x).^2+y.^2+z.^2));
c=4*3.14*10^(-7)./(4*3.14*(25*z.^2+(12+4*x+3*y).^2))*((9-3*x+4*y)/sqrt((3+x).^2+y.^2+z.^2 )+(16-3*x+4*y)/sqrt(x.^2+(4+y).^2+z.^2 ));
d=4*3.14*10^(-7)./(4*3.14*(17*z.^2+(4-4*x+y).^2))*((16-x-4*y)/sqrt(x.^2+(4+y).^2+z.^2 )+(1-x-4*y)/sqrt((1-x).^2+y.^2+z.^2 ));
z1=2*z.*(a-b)+4*z.*(d-c);
z2=z.*(a-d)+3*z.*(b-c);
z3=a.*(2-2*x-y)+b.*(6+2*x-3*y)+c.*(12+4*x+3*y)+d.*(4-4*x+y);
plot3(z1,z2,z3)