Use the time step within ode15s
조회 수: 2 (최근 30일)
이전 댓글 표시
I am using ode15s to solve a set of differential equation on the form M(t,y)dy/dt = f(t,y). Due to the way I have formulated my ode's now, I need to use the time step from ode15s inside the function f(t,y). As far as I can see, I only have access to the present time 't' when ode15s is working, but is there any way to work around this so I can use the time step dt?
채택된 답변
Jan
2019년 11월 28일
If the function to be integrated requires the time steps of the solver, something went wrong. I'm convinced that this is a logical error in the implementation. Please explain, why you think you need this.
댓글 수: 2
Carina Bringedal
2019년 12월 1일
The question is 6 years old. I do not remember how I solved it, but I think I did. I at least do not need an answer to the question anymore.
추가 답변 (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!