MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   MATLAB论坛 (https://www.labfans.com/bbs/forumdisplay.php?f=6)
-   -   [求助]拟合的初始值怎么确定 (https://www.labfans.com/bbs/showthread.php?t=6053)

drosophilia 2008-12-27 22:52

[求助]拟合的初始值怎么确定
 
有两个变量x和y,想拟合成y=axb次方形式,即幂,
定义函数,
pre=inline('a(1)*x.^(a(2)','a','t')
然后用nlinfit,但不知[]里的初始值怎末确定?
a=nlinfit(x,y,pre,[ ])

多谢指点!

mathjiang 2008-12-30 14:57

回复: [求助]拟合的初始值怎么确定
 
实在不行你就用[1 ... 1],多少个变量多少个1。

matlab中的有些命令,比如做拟合的nonlinfit等,对初值高度敏感,而初值又往往难以猜出,所以,不建议用matlab做这些事情。


所有时间均为北京时间。现在的时间是 05:12

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