| 查看: 1973 | 回復(fù): 14 | ||||
dengwei_19木蟲(chóng) (著名寫手)
鐵齒金不換誠(chéng)實(shí)可靠小郎君
|
[求助]
現(xiàn)在做到高斯函數(shù)的誤差函數(shù)一步,又是一個(gè)方程不知道用matlab怎么寫
|
|||
無(wú)機(jī)非金屬精華討論集 |
榮譽(yù)版主 (著名寫手)
![]() |
專家經(jīng)驗(yàn): +4 |
|
fun=@(x)-5.4*(pi^(1/2)*erf(10*2^0.5./x))/2-2.8*(pi^(1/2)*erf(40*2^0.5./x))/2+2.6; 這個(gè)是將你的積分方程式轉(zhuǎn)為誤差函數(shù),-(pi^(1/2)*erf(10*2^0.5./x))/2,(pi^(1/2)*erf(40*2^0.5./x))/2,是你的兩個(gè)積分 w(即x)的解使得fun=0 x=0.1:0.1:100; y=feval(fun,x); plot(x,y) 這個(gè)是w(即x)在0到100之間變化時(shí)fun的取值,用來(lái)在做圖猜測(cè)w大概在什么位置,fun=0 [x,feval,flag]=fsolve(fun,80)是用來(lái)求精確數(shù)值解 x解即w feval 取x的值 fun的函數(shù)值越接近0越好 flag 判斷解的情況 1 FSOLVE converged to a root. 2 Change in X too small. 3 Change in residual norm too small. 4 Computed search direction too small. 0 Too many function evaluations or iterations. -1 Stopped by output/plot function. -2 Converged to a point that is not a root. -3 Trust region radius too small (Trust-region-dogleg) or Regularization parameter too large (Levenberg-Marquardt). -4 Line search failed. |

金蟲(chóng) (職業(yè)作家)

木蟲(chóng) (著名寫手)
鐵齒金不換誠(chéng)實(shí)可靠小郎君
榮譽(yù)版主 (著名寫手)
![]() |
專家經(jīng)驗(yàn): +4 |
|
>> syms x >> syms w;int(exp(-x^2),0,w) ans = (pi^(1/2)*erf(w))/2 >> syms w;int(exp(-x^2),0,-w) ans = -(pi^(1/2)*erf(w))/2 =========== >> fun=@(x)-5.4*(pi^(1/2)*erf(10*2^0.5./x))/2-2.8*(pi^(1/2)*erf(40*2^0.5./x))/2+2.6; >> x=0.1:0.1:100; >> y=feval(fun,x); >> plot(x,y) >> [x,feval,flag]=fsolve(fun,80) Equation solved. fsolve completed because the vector of function values is near zero as measured by the default value of the function tolerance, and the problem appears regular as measured by the gradient. x = 81.4787 feval = -9.0775e-010 flag = 1 |

鐵桿木蟲(chóng) (職業(yè)作家)
木蟲(chóng) (著名寫手)
鐵齒金不換誠(chéng)實(shí)可靠小郎君
榮譽(yù)版主 (著名寫手)
![]() |
專家經(jīng)驗(yàn): +4 |

木蟲(chóng) (著名寫手)
鐵齒金不換誠(chéng)實(shí)可靠小郎君
木蟲(chóng) (著名寫手)
鐵齒金不換誠(chéng)實(shí)可靠小郎君
木蟲(chóng) (著名寫手)
鐵齒金不換誠(chéng)實(shí)可靠小郎君
| 最具人氣熱帖推薦 [查看全部] | 作者 | 回/看 | 最后發(fā)表 | |
|---|---|---|---|---|
|
[考研] 0854電子信息求調(diào)劑 +3 | α____ 2026-03-22 | 3/150 |
|
|---|---|---|---|---|
|
[考研] 北科281學(xué)碩材料求調(diào)劑 +6 | tcxiaoxx 2026-03-20 | 6/300 |
|
|
[考研] 315分,誠(chéng)求調(diào)劑,材料與化工085600 +3 | 13756423260 2026-03-22 | 3/150 |
|
|
[考研] 285求調(diào)劑 +6 | ytter 2026-03-22 | 6/300 |
|
|
[考研] 333求調(diào)劑 +5 | 87639 2026-03-21 | 7/350 |
|
|
[考研] 材料 271求調(diào)劑 +5 | 展信悅_ 2026-03-21 | 5/250 |
|
|
[考研] 301求調(diào)劑 +10 | yy要上岸呀 2026-03-17 | 10/500 |
|
|
[考研] 303求調(diào)劑 +5 | 睿08 2026-03-17 | 7/350 |
|
|
[考研] 一志愿華中科技大學(xué),080502,354分求調(diào)劑 +5 | 守候夕陽(yáng)CF 2026-03-18 | 5/250 |
|
|
[考研] 一志愿華南師大 070300(化學(xué))304分求調(diào)劑 +3 | 0703武芊慧雪304 2026-03-18 | 3/150 |
|
|
[考研] 295求調(diào)劑 +4 | 一志愿京區(qū)211 2026-03-18 | 6/300 |
|
|
[考研] 一志愿武漢理工材料工程專碩調(diào)劑 +9 | Doleres 2026-03-19 | 9/450 |
|
|
[考研] 317求調(diào)劑 +5 | 申子申申 2026-03-19 | 9/450 |
|
|
[考研] 一志愿西南交通 專碩 材料355 本科雙非 求調(diào)劑 +5 | 西南交通專材355 2026-03-19 | 5/250 |
|
|
[考研] 求調(diào)劑 +3 | @taotao 2026-03-20 | 3/150 |
|
|
[考研] 085410人工智能專碩317求調(diào)劑(0854都可以) +4 | xbxudjdn 2026-03-18 | 4/200 |
|
|
[考研] 收復(fù)試調(diào)劑生 +4 | 雨后秋荷 2026-03-18 | 4/200 |
|
|
[考研] 085601求調(diào)劑 +4 | Du.11 2026-03-16 | 4/200 |
|
|
[考研] 一志愿蘇州大學(xué)材料工程(085601)專碩有科研經(jīng)歷三項(xiàng)國(guó)獎(jiǎng)兩個(gè)實(shí)用型專利一項(xiàng)省級(jí)立項(xiàng) +6 | 大火山小火山 2026-03-16 | 8/400 |
|
|
[考研] 一志愿南京大學(xué),080500材料科學(xué)與工程,調(diào)劑 +4 | Jy? 2026-03-16 | 4/200 |
|