| 3 | 1/1 | 返回列表 |
| 查看: 518 | 回復(fù): 2 | ||
大海的聲音新蟲(chóng) (小有名氣)
|
[求助]
MATLAB非線性擬合出錯(cuò)怎么回事? 已有1人參與
|
|
X=[ ];y=[ ]; //輸入數(shù)據(jù) plot(x,y,'-or'); >> c0=[0.98 0.00844 2.1144]; >> n=length(x); >> fun=inline('1000*x.*(1-c(1)+c(1).*exp(-(x/c(2)).^c(3)))','c','x'); >> [c,r,j]=nlinfit(x,y,fun,c0); Sample Text > In nlinfit at 240 [c,r,j]=nlinfit(x,y,fun,c0) …………………….. …………………….. …………………….. . . . Format long >> c c = 1.0e+002 * 6.991289140190613 0.232158704730335 0.008642422367326 y1=1000*x.*(1-c(1)+c(1).*exp(-(x/c(2)).^c(3))); >> R2=1-sum((y1-y).^2)./sum((y1-mean(y)).^2); >> sqrt(R2) ans = 0.480838537767861 中間兩個(gè)Warning是怎么回事?而且相關(guān)系數(shù)很低這是怎么回事?請(qǐng)大家指導(dǎo)! |
新蟲(chóng) (小有名氣)
|
剛才輸錯(cuò)了,完整的是這樣的 X=[ ];y=[ ]; //輸入數(shù)據(jù) plot(x,y,'-or'); >> c0=[0.98 0.00844 2.1144]; >> n=length(x); >> fun=inline('1000*x.*(1-c(1)+c(1).*exp(-(x/c(2)).^c(3)))','c','x'); >> [c,r,j]=nlinfit(x,y,fun,c0); Warning: Iteration limit exceeded. Returning results from final iteration. In nlinfit at 193 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 240 [c,r,j]=nlinfit(x,y,fun,c0) …………………….. …………………….. …………………….. . . . Format long >> c c = 1.0e+002 * 6.991289140190613 0.232158704730335 0.008642422367326 y1=1000*x.*(1-c(1)+c(1).*exp(-(x/c(2)).^c(3))); >> R2=1-sum((y1-y).^2)./sum((y1-mean(y)).^2); >> sqrt(R2) ans = 0.480838537767861 |
用戶注銷 (職業(yè)作家)
Matlab專家
| 3 | 1/1 | 返回列表 |
| 最具人氣熱帖推薦 [查看全部] | 作者 | 回/看 | 最后發(fā)表 | |
|---|---|---|---|---|
|
[考研] 求調(diào)劑 +3 | 暗涌afhb 2026-03-16 | 3/150 |
|
|---|---|---|---|---|
|
[考研] 一志愿吉林大學(xué)材料學(xué)碩321求調(diào)劑 +9 | Ymlll 2026-03-18 | 12/600 |
|
|
[考研] 294求調(diào)劑材料與化工專碩 +14 | 陌の森林 2026-03-18 | 14/700 |
|
|
[考研] 求調(diào)劑,一志愿:南京航空航天大學(xué)大學(xué) ,080500材料科學(xué)與工程學(xué)碩,總分289分 +3 | @taotao 2026-03-19 | 3/150 |
|
|
[考研] 化學(xué)求調(diào)劑 +3 | 臨澤境llllll 2026-03-17 | 4/200 |
|
|
[考研] 材料080500調(diào)劑求收留 +4 | 一顆meteor 2026-03-13 | 4/200 |
|
|
[考研] 332求調(diào)劑 +3 | ydfyh 2026-03-17 | 3/150 |
|
|
[考研] 本科鄭州大學(xué)物理學(xué)院,一志愿華科070200學(xué)碩,346求調(diào)劑 +4 | 我不是一根蔥 2026-03-18 | 4/200 |
|
|
[考研] 0703化學(xué)調(diào)劑,求各位老師收留 +10 | 秋有木北 2026-03-14 | 10/500 |
|
|
[考研] 295求調(diào)劑 +3 | 一志愿京區(qū)211 2026-03-18 | 5/250 |
|
|
[考研] 085600材料與化工 +5 | 安全上岸! 2026-03-16 | 5/250 |
|
|
[考研] 311求調(diào)劑 +11 | 冬十三 2026-03-15 | 12/600 |
|
|
[考研] 材料專碩306英一數(shù)二 +10 | z1z2z3879 2026-03-16 | 13/650 |
|
|
[考研] 301求調(diào)劑 +4 | A_JiXing 2026-03-16 | 4/200 |
|
|
[考研] 326求調(diào)劑 +5 | 上岸的小葡 2026-03-15 | 6/300 |
|
|
[考研] 一志愿南京大學(xué),080500材料科學(xué)與工程,調(diào)劑 +4 | Jy? 2026-03-16 | 4/200 |
|
|
[考研] 283求調(diào)劑 +3 | 聽(tīng)風(fēng)就是雨; 2026-03-16 | 3/150 |
|
|
[考研] 0703 物理化學(xué)調(diào)劑 +3 | 我可以上岸的對(duì)?/a> 2026-03-13 | 5/250 |
|
|
[考研] 326求調(diào)劑 +3 | mlpqaz03 2026-03-15 | 3/150 |
|
|
[考研] 中科大材料與化工319求調(diào)劑 +3 | 孟鑫材料 2026-03-14 | 3/150 |
|