| 5 | 1/1 | 返回列表 |
| 查看: 923 | 回復(fù): 6 | |||
| 本帖產(chǎn)生 1 個 博學(xué)EPI ,點擊這里進(jìn)行查看 | |||
| 當(dāng)前只顯示滿足指定條件的回帖,點擊這里查看本話題的所有回帖 | |||
wuhaiyan1110銀蟲 (初入文壇)
|
[求助]
matlab中問題請教
|
||
|
請教,在matlab中輸入下面的命令 function bvp4cEx solinit = bvpinit(linspace(0,1,10),[-1 0]); sol = bvp4c(@twoode,@twobc,solinit); x = linspace(0,1); y = deval_r(sol,x); plot(x,y(1, ,'rp');hold on; yAbs=x.^2+4.*x+5; plot(x,yAbs,'bo'); hold off; function dydx = twoode(x,y) dydx = [ y(2);2*y(2)-y(1)+x^2-1]; function res = twobc(ya,yb) res = [ ya(1)-5; yb(1)-10]; Undefined command/function 'deval_r' Error in ==> bvp4cEx at 5 y = deval_r(sol,x); 出現(xiàn)的錯誤是'deval_r'未定義,'deval_r' 是什么意思?應(yīng)該如何解決這個問題呢? |
金蟲 (著名寫手)
正能量使者
|
DEVAL函數(shù)是估計微分方程的解的函數(shù),你在command窗口help 即可查看,如下: DEVAL Evaluate the solution of a differential equation problem. SXINT = DEVAL(SOL,XINT) evaluates the solution of a differential equation problem at all the entries of the vector XINT. SOL is a structure returned by an initial value problem solver (ODE45, ODE23, ODE113, ODE15S, ODE23S, ODE23T, ODE23TB, ODE15I), a boundary value problem solver (BVP4C, BVP5C), or a delay differential equations solver (DDE23, DDESD). The elements of XINT must be in the interval [SOL.x(1) SOL.x(end)]. For each I, SXINT(:,I) is the solution corresponding to XINT(I). |

金蟲 (著名寫手)
正能量使者

鐵蟲 (初入文壇)
銀蟲 (初入文壇)
| 最具人氣熱帖推薦 [查看全部] | 作者 | 回/看 | 最后發(fā)表 | |
|---|---|---|---|---|
|
[考研] 一志愿 南京航空航天大學(xué) ,080500材料科學(xué)與工程學(xué)碩 +4 | @taotao 2026-03-30 | 4/200 |
|
|---|---|---|---|---|
|
[考研] 本科211總分289,08工學(xué)真心求調(diào)劑 +3 | utopiaE 2026-03-30 | 3/150 |
|
|
[考研] 359求調(diào)劑 +5 | 王了個楠 2026-03-25 | 5/250 |
|
|
[考研] 287求調(diào)劑 +14 | land xuxu 2026-03-26 | 14/700 |
|
|
[考研] 一志愿廈門大學(xué)材料工程專碩354找調(diào)劑。。 +5 | 貝唄鋇鋇 2026-03-30 | 5/250 |
|
|
[考研] 08工科,295,接受跨專業(yè)調(diào)劑 +3 | lmnlzy 2026-03-30 | 3/150 |
|
|
[考研] 284求調(diào)劑 +14 | junqihahaha 2026-03-26 | 15/750 |
|
|
[考研] 085701求調(diào)劑初試286分 +5 | secret0328 2026-03-28 | 5/250 |
|
|
[考研] 一志愿中南大學(xué)化學(xué)0703總分337求調(diào)劑 +6 | niko- 2026-03-27 | 6/300 |
|
|
[考研] 294分080500材料科學(xué)與工程求調(diào)劑 +8 | 柳溪邊 2026-03-26 | 8/400 |
|
|
[考研] 085600,專業(yè)課化工原理,321分求調(diào)劑 +5 | 大饞小子 2026-03-28 | 5/250 |
|
|
[考研] 343求調(diào)劑 +5 | 愛羈絆 2026-03-28 | 5/250 |
|
|
[考研] 265求調(diào)劑 +8 | 小木蟲085600 2026-03-27 | 8/400 |
|
|
[考研]
|
18419759900 2026-03-25 | 8/400 |
|
|
[考研] 085600,材料與化工321分調(diào)劑 +4 | 大饞小子 2026-03-27 | 6/300 |
|
|
[考研] 085601 材料工程 313分 求調(diào)劑 +5 | Ong3 2026-03-27 | 5/250 |
|
|
[考研] 324求調(diào)劑 +5 | hanamiko 2026-03-26 | 5/250 |
|
|
[碩博家園] 北京林業(yè)大學(xué)碩導(dǎo)招生廣告 +6 | kongweilin 2026-03-26 | 8/400 |
|
|
[考研] 一志愿 南京郵電大學(xué) 288分 材料考研 求調(diào)劑 +3 | jl0720 2026-03-26 | 3/150 |
|
|
[考研] 調(diào)劑 +4 | 13853210211 2026-03-24 | 4/200 |
|