Does ode45 hits events depending on the maxStep value?
3 visualizaciones (últimos 30 días)
is it possible that solver is hitting events depending on the maxStep value?
In my case the right hand function has some conditions that were called by detected events.
Setting no maxStep, the solution makes no sence, setting it under a certain threhold - it works.
I would like have the advateges of using the varaible steps and hiiting events excactly.
Thanks for your anwers.
Babak el 5 de Dic. de 2012
As far as for a numerical ODE solver, i.e. ODE45, you can never get anything exact. Your solution is not exact and the events solutions not exact either.
The event's solutions where the solution crosses zero, can never be exact. It can be more precise, if your maxStep is smaller. It may even diverge, if maxStep is too big.
If you want to get exact solutions you need to use MATLAB's Symbolic Math Toolbox, or MAPLE or Mathematica.