| 5 | 1/1 | 返回列表 |
| 查看: 1637 | 回復(fù): 6 | |||
| 當前只顯示滿足指定條件的回帖,點擊這里查看本話題的所有回帖 | |||
[交流]
MATLAB怎么看程序運行了多少次呢? 已有1人參與
|
|||
|
%%ODE45_fun解方程 tspan=[0,1e-5]; x0=[2.1e+10,1,1,1,1]; [t,x]=ode45('ODE45_fun',tspan,x0); a1=1;a2=1;e1=9;e2=7;f1=56;f2=98;g1=76;g2=665; a=a1+a2; e=e1+e2; f=f1+f2; g=g1+g2; [n,m]=size(x); for i=1:n x(i,6)=x(i,4)*x(i,5)+x(i,2)*x(i,3)+e*f+e*g; end data=[t,x]; save ODE45_data.txt data -ascii subplot(2,3,1),plot(t,x(1)) subplot(2,3,2),plot(t,x(2)) subplot(2,3,3),plot(t,x(3)) subplot(2,3,4),plot(t,x(4)) subplot(2,3,5),plot(t,x(5)) subplot(2,3,6),plot(t,x(6)) Warning: Failure at t=1.075809e-007. Unable to meet integration tolerances without reducing the step size below the smallest value allowed (2.117582e-022) at time t. > In ode45 at 355 還有為什么會出現(xiàn)警告 |
木蟲 (著名寫手)
木蟲 (著名寫手)
| 最具人氣熱帖推薦 [查看全部] | 作者 | 回/看 | 最后發(fā)表 | |
|---|---|---|---|---|
|
[考研] 一志愿上海海洋大學(xué)083200食品學(xué)碩,求調(diào)劑,接受其他專業(yè) +6 | what張 2026-04-01 | 7/350 |
|
|---|---|---|---|---|
|
[考研] 330分求調(diào)劑 +13 | qzenlc 2026-03-29 | 13/650 |
|
|
[考研] 一志愿山東大學(xué),085600,344 +3 | 魏子per 2026-04-02 | 4/200 |
|
|
[考研] 318求調(diào)劑 +3 | 篤行致遠. 2026-03-31 | 4/200 |
|
|
[考研] 283求調(diào)劑 +3 | jiouuu 2026-04-02 | 4/200 |
|
|
[考研] 一志愿北交大材料工程總分358 +3 | cs0106 2026-04-02 | 5/250 |
|
|
[考研] 生醫(yī)工0831調(diào)劑求推薦 +5 | 小熊睿睿_s 2026-03-27 | 7/350 |
|
|
[考研] 329求調(diào)劑 +8 | miaodesi 2026-04-02 | 10/500 |
|
|
[考研] 求生物學(xué)調(diào)劑 +8 | 15172915737 2026-04-01 | 8/400 |
|
|
[考研] 材料與化工(0856)304求B區(qū)調(diào)劑 +8 | 邱gl 2026-03-30 | 16/800 |
|
|
[碩博家園] 博一被送出聯(lián)培感覺不適應(yīng)怎么辦 +3 | 全村的狗 2026-03-31 | 3/150 |
|
|
[考研] 0856材料化工調(diào)劑 總分330 +18 | zhubinhao 2026-03-27 | 18/900 |
|
|
[考研] 318一志愿吉林大學(xué)生物與醫(yī)藥 求調(diào)劑 +6 | 篤行致遠. 2026-03-28 | 6/300 |
|
|
[考研] 考研調(diào)劑求助 +7 | 13287130938 2026-03-31 | 7/350 |
|
|
[考研]
|
小羊36 2026-03-30 | 4/200 |
|
|
[有機交流]
10+3
|
kaobao456 2026-03-29 | 4/200 |
|
|
[考研] 一志愿南開大學(xué)0710生物學(xué)359求調(diào)劑 +5 | 兔兔兔111223314 2026-03-29 | 7/350 |
|
|
[考研] 藥學(xué)105500求調(diào)劑 +3 | Ssun。。 2026-03-28 | 3/150 |
|
|
[考研] 一志愿南京航空航天大學(xué)材料學(xué)碩求調(diào)劑 +3 | @taotao 2026-03-28 | 3/150 |
|
|
[考研] 一志愿吉大071010,316分求調(diào)劑 +3 | xgbiknn 2026-03-27 | 3/150 |
|