How do I force ode45 to take steps of exactly 0.01 on the T axis?

前端 未结 6 1908
再見小時候
再見小時候 2021-01-05 14:44

I\'m using Matlab to solve a differential equation. I want to force ode45 to take constant steps, so it always increments 0.01 on the T axis while solving the equation. How

6条回答
  •  爱一瞬间的悲伤
    2021-01-05 15:13

    ode45 invariably uses adaptive step size, the documentation addresses this issue and recommends other solvers instead for fixed step size - see ode4 (fourth order Runge-Kutta) which is a fairly safe bet for solving most odes - at least according to Numerical Recipes

提交回复
热议问题