Defining boundary condition at infinite x for ODE
조회 수: 8 (최근 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!