| 查看: 806 | 回复: 0 | ||
[求助]
步长问题
|
|
我做了个模型: function dy=bushi1(t,y) a=5;b=10;u1=0.2;u2=1;k1=2;k2=1; dy=[u1*y(1)*y(2)+2*k1*y(1)*y(2)*y(2)-a*y(1)-k2*y(1)*y(2)*y(2); b*y(2)-u2*y(1)*y(2)+2*k2*y(1)*y(2)*y(2)]; end 命令作图 ts=1:1:200; y0=[2,25]; [t,y]=ode45('bushi1',ts,y0) plot(t,y(:,1),'r',t,y(:,2),'b') 出现:“Warning: Failure at t=1.001176e+000. Unable to meet integration tolerances without reducing the step size below the smallest value allowed (3.552714e-015) at time t.” 求解决。 |
» 猜你喜欢
基于基元I统一理论的量子力学本源推导
已经有1人回复
推荐一款可以AI辅助写作的Latex编辑器SmartLatexEditor,超级好用,AI润色,全免费
已经有20人回复
物理学I论文润色/翻译怎么收费?
已经有92人回复
【EI|Scopus 双检索】第六届智能机器人系统国际会议(ISoIRS 2026)
已经有1人回复
2026年第四届电动车与车辆工程国际会议(CEVVE 2026)
已经有0人回复













回复此楼