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

前端 未结 6 1897
再見小時候
再見小時候 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:18

    Your script does not indicate fixed-step size, It only shows that solution will be printed based on the time-step provided. Try check the solution structure of the ODE and you will realize that in fact, it uses a different timestep.

    The best way to get it to use a fixed timestep is to ensure that both RelTol and AbsTol are large enough.

提交回复
热议问题