matlab 已知公式求解function main2()xx=[0 3 6 9 12 15 18 21 24 27 30 33 36 39 42 45];y=[28.4328.3626.9223.8720.8719.1716.9316.0515.5615.1614.9914.7514.6514.5114.414.39];for i=1:length(xx)s0=28.43;x0=4.43;xm=82.05;u=0.25;m=0.05;x=xx(i);yy=y(i);an
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/15 07:48:21
matlab 已知公式求解function main2()xx=[0 3 6 9 12 15 18 21 24 27 30 33 36 39 42 45];y=[28.4328.3626.9223.8720.8719.1716.9316.0515.5615.1614.9914.7514.6514.5114.414.39];for i=1:length(xx)s0=28.43;x0=4.43;xm=82.05;u=0.25;m=0.05;x=xx(i);yy=y(i);an
matlab 已知公式求解
function main2()
xx=[0 3 6 9 12 15 18 21 24 27 30 33 36 39 42 45];
y=[28.43
28.36
26.92
23.87
20.87
19.17
16.93
16.05
15.56
15.16
14.99
14.75
14.65
14.51
14.4
14.39];
for i=1:length(xx)
s0=28.43;
x0=4.43;
xm=82.05;
u=0.25;
m=0.05;
x=xx(i);
yy=y(i);
ans1(i)=subs(solve('yy=s0+x0/k-1/k*(x0*xm*exp(u*x)/(xm-x0+x0*exp(u*x)))-m*xm*log(xm-x0+x0*exp(u*x)/u','k'));
end
请问错在哪里?
matlab 已知公式求解function main2()xx=[0 3 6 9 12 15 18 21 24 27 30 33 36 39 42 45];y=[28.4328.3626.9223.8720.8719.1716.9316.0515.5615.1614.9914.7514.6514.5114.414.39];for i=1:length(xx)s0=28.43;x0=4.43;xm=82.05;u=0.25;m=0.05;x=xx(i);yy=y(i);an
我看看!