| 7 | 1/1 | 返回列表 |
| 查看: 915 | 回復: 6 | ||
| 本帖產生 1 個 博學EPI ,點擊這里進行查看 | ||
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' 是什么意思?應該如何解決這個問題呢? |
金蟲 (著名寫手)
正能量使者
|
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). |

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

銀蟲 (初入文壇)
銀蟲 (初入文壇)
銀蟲 (小有名氣)
| 7 | 1/1 | 返回列表 |
| 最具人氣熱帖推薦 [查看全部] | 作者 | 回/看 | 最后發(fā)表 | |
|---|---|---|---|---|
|
[考研] 279分求調劑 一志愿211 +14 | chaojifeixia 2026-03-19 | 15/750 |
|
|---|---|---|---|---|
|
[考研] 336求調劑 +3 | rmc8866 2026-03-21 | 3/150 |
|
|
[考研] 求調劑 +6 | Mqqqqqq 2026-03-19 | 6/300 |
|
|
[考研] 307求調劑 +3 | wyyyqx 2026-03-17 | 3/150 |
|
|
[考研] 083200學碩321分一志愿暨南大學求調劑 +3 | innocenceF 2026-03-17 | 3/150 |
|
|
[考研] 求調劑 +3 | Ma_xt 2026-03-17 | 3/150 |
|
|
[考研] 330求調劑 +4 | 小材化本科 2026-03-18 | 4/200 |
|
|
[考研] 324求調劑 +5 | lucky呀呀呀鴨 2026-03-20 | 5/250 |
|
|
[考研] 一志愿中南化學(0703)總分337求調劑 +8 | niko- 2026-03-19 | 9/450 |
|
|
[考研] 0817 化學工程 299分求調劑 有科研經(jīng)歷 有二區(qū)文章 +22 | rare12345 2026-03-18 | 22/1100 |
|
|
[考研] 295材料求調劑,一志愿武漢理工085601專碩 +5 | Charlieyq 2026-03-19 | 5/250 |
|
|
[考研] 289求調劑 +6 | 懷瑾握瑜l 2026-03-20 | 6/300 |
|
|
[考研] 一志愿西安交通大學 學碩 354求調劑211或者雙一流 +3 | 我想要讀研究生 2026-03-20 | 3/150 |
|
|
[考研] 廣西大學家禽遺傳育種課題組2026年碩士招生(接收計算機專業(yè)調劑) +3 | 123阿標 2026-03-17 | 3/150 |
|
|
[考研] 0856調劑,是學校就去 +8 | sllhht 2026-03-19 | 9/450 |
|
|
[考研] 材料學碩318求調劑 +5 | February_Feb 2026-03-19 | 5/250 |
|
|
[考研] 生物學調劑招人!! +3 | 山海天嵐 2026-03-17 | 4/200 |
|
|
[考研] 0703化學調劑 +4 | 18889395102 2026-03-18 | 4/200 |
|
|
[考研] 308求調劑 +4 | 是Lupa啊 2026-03-16 | 4/200 |
|
|
[考研] 302求調劑 +4 | 小賈同學123 2026-03-15 | 8/400 |
|