MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   数学 (https://www.labfans.com/bbs/forumdisplay.php?f=15)
-   -   求方程系数,但有警告。请问如何处理? (https://www.labfans.com/bbs/showthread.php?t=9668)

y708321017 2009-09-14 22:53

求方程系数,但有警告。请问如何处理?
 
x=[0 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90];
y1=[0.3 0.983 0.984 0.983 0.986 0.985 0.984 0.982 0.985 0.986 0.983 0.982 0.984 0.983 0.985 0.985 0.984 0.982 0.988 0.981 0.984 0.983 0.981 0.983 0.986 0.985 098.7 0.984 0.985 0.986 0.982];
y=872.6*y1* 0.00652/(8.31*278);
myfunc=inline('-(beta(1)-beta(3)*exp(beta(2)*x))/beta(2)','beta','x');
beta=nlinfit(x,y,myfunc,[01 -0.1 0.1]);
a=beta(1),b=beta(2),c=beta(3)


Warning: The Jacobian at the solution is ill-conditioned, and some model parameters may not be estimated well (they are not identifiable). Use caution in making predictions.
> In nlinfit at 223

a = 0.0148
b = -1.4162
c = 0.0137

cupid8 2009-09-15 03:52

回复: 求方程系数,但有警告。请问如何处理?
 
我也刚接触,不过刚好看到了,你仔细看看matlab的help,中那非线性的那个命令,应该有帮助的


所有时间均为北京时间。现在的时间是 20:54

Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.