matlab左下角出现busy怎么办 下面是源程序
t=0:0.1:1;x=t;y=sqrt(1-x.^2);k1=rand(1,11)/100;k2=rand(1,11)/100;k=k1-k2;m1=rand(1,11...
t=0:0.1:1;
x=t;
y=sqrt(1-x.^2);
k1=rand(1,11)/100;
k2=rand(1,11)/100;
k=k1-k2;
m1=rand(1,11)/100;
m2=rand(1,11)/100;
m=m1-m2;
r1=sqrt((x+k).^2+(y+m).^2);
syms a b;
r=sqrt((x-a).^2+(y-b).^2);
s=0;
for i=1:11
v=(r1(i)-r(i)).^2;
s=s+v;
end
m=diff(s,a);
n=diff(s,b);
[a,b]=solve(m,n,'a','b');
disp(a);
disp(b);
plot(r1*cos(1)+r1*sin(1),'b',r*cos(1)+r*sin(1),'r'); 展开
x=t;
y=sqrt(1-x.^2);
k1=rand(1,11)/100;
k2=rand(1,11)/100;
k=k1-k2;
m1=rand(1,11)/100;
m2=rand(1,11)/100;
m=m1-m2;
r1=sqrt((x+k).^2+(y+m).^2);
syms a b;
r=sqrt((x-a).^2+(y-b).^2);
s=0;
for i=1:11
v=(r1(i)-r(i)).^2;
s=s+v;
end
m=diff(s,a);
n=diff(s,b);
[a,b]=solve(m,n,'a','b');
disp(a);
disp(b);
plot(r1*cos(1)+r1*sin(1),'b',r*cos(1)+r*sin(1),'r'); 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询