matlab有2道题做不来,高手来

2025-12-06 07:33:49
推荐回答(2个)
回答1:

第9题解不出唯一解,估计题目或图有问题。
还有,4道题目一分不给,你出去看看行情,不是碰到我没人帮你做。
如果你还有点自觉的话,把所有分数全部追加上去。

%第6题
a=1;b=1;
while b<=20000
temp=a;
a=b;
b=temp+b;
end
disp(num2str(b));

%第7题
syms x;
y=sin(x+pi/4);
ezplot(y);
pause;
z=cos(x+pi/3);
figure;
ezplot(z);
pause(15);
figure;
ezplot(y+z);

%第8题
[t,x]=ode45(@(t,x)[2*t;2*t.^2;6*t.^3-t.^2],[0,10],[0 0 0]);
plot3(x(:,1),x(:,2),x(:,3));

%第9题
x=solve('x2+x4=x3+300','100+400=x4+x5','200+x7=x6+400','300+500=x1+x2','x1+x5=200+600','600+400=x7+x8','300+600=500+x9','200+x9=x10','x10+500=400+700','300+x3+x6+x8+700=300+300+100+200+500+600');

回答2:

你太扣了 做这么多题也不给分?