Defining boundary condition at infinite x for ODE
6 次查看(过去 30 天)
显示 更早的评论
Hello,
I am solving ODE, and how can I write Matlab command to express the termninal x value as infinite?
0 个评论
回答(1 个)
Youssef Khmou
2013-3-9
hi Daniyar, You mean setting Tspan as Inf ? if yes then :
i do not think its logic to make the bound as Inf , but instead make a large value , ok try this :
>>f=@(y,x) sin(x+y).*exp(-x.^2-y.^2)
>>[t,y]=ode15s(f,[1 2],[0 Inf])
>>[t,y]=ode15s(f,[1 2],[0 1e+9])
does this helps ?
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Ordinary Differential Equations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!