| 5 | 1/1 | 返回列表 |
| 查看: 521 | 回復(fù): 2 | ||
| 當(dāng)前只顯示滿足指定條件的回帖,點(diǎn)擊這里查看本話題的所有回帖 | ||
大海的聲音新蟲 (小有名氣)
|
[求助]
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)! |
用戶注銷 (職業(yè)作家)
Matlab專家
新蟲 (小有名氣)
|
剛才輸錯(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 |
| 最具人氣熱帖推薦 [查看全部] | 作者 | 回/看 | 最后發(fā)表 | |
|---|---|---|---|---|
|
[考研] 環(huán)境學(xué)碩288求調(diào)劑 +7 | 皮皮皮123456 2026-03-22 | 7/350 |
|
|---|---|---|---|---|
|
[考研] 316求調(diào)劑 +7 | 梁茜雯 2026-03-19 | 7/350 |
|
|
[考研] 291求調(diào)劑 +5 | 孅華 2026-03-22 | 5/250 |
|
|
[考研]
|
2117205181 2026-03-21 | 8/400 |
|
|
[考研] 0854電子信息求調(diào)劑 +3 | α____ 2026-03-22 | 3/150 |
|
|
[考研] 308求調(diào)劑 +3 | 墨墨漠 2026-03-21 | 3/150 |
|
|
[考研] 298求調(diào)劑一志愿211 +3 | 上岸6666@ 2026-03-20 | 3/150 |
|
|
[考研] 一志愿華中科技大學(xué)071000,求調(diào)劑 +4 | 沿岸有貝殼6 2026-03-21 | 4/200 |
|
|
[考研] 求調(diào)劑 +4 | 要好好無聊 2026-03-21 | 4/200 |
|
|
[考研] 材料工程專碩 348分求調(diào)劑 +3 | 冬辭. 2026-03-17 | 5/250 |
|
|
[考研] 311求調(diào)劑 +3 | 勇敢的小吳 2026-03-20 | 3/150 |
|
|
[考研] 268求調(diào)劑 +9 | 簡(jiǎn)單點(diǎn)0 2026-03-17 | 9/450 |
|
|
[考研] 265求調(diào)劑 +12 | 梁梁校校 2026-03-19 | 14/700 |
|
|
[考研] 一志愿山大07化學(xué) 332分 四六級(jí)已過 本科山東雙非 求調(diào)劑! +3 | 不想理你 2026-03-16 | 3/150 |
|
|
[考研] 324分 085600材料化工求調(diào)劑 +4 | llllkkkhh 2026-03-18 | 4/200 |
|
|
[考研] 296求調(diào)劑 +6 | www_q 2026-03-18 | 10/500 |
|
|
[考研] 一志愿 西北大學(xué) ,070300化學(xué)學(xué)碩,總分287,雙非一本,求調(diào)劑。 +4 | 晨昏線與星海 2026-03-19 | 4/200 |
|
|
[考研] 材料學(xué)求調(diào)劑 +4 | Stella_Yao 2026-03-20 | 4/200 |
|
|
[考研] 353求調(diào)劑 +3 | 拉鉤不許變 2026-03-20 | 3/150 |
|
|
[論文投稿] 有沒有大佬發(fā)小論文能帶我個(gè)二作 +3 | 增銳漏人 2026-03-17 | 4/200 |
|