ode45 discontinuity in resulting function

I have a set of nonlinear ODE's in which there is a removable discontinuity in the resulting function. ODE45 if not capable of integrating through this discontinuity and it will not remove it. I modeled the system in Simulink, but I want the capability of doing it with ODE45 or similar.
I thought about using event locator, but I don't know what event I'm looking for. Additionally, the ODE's won't change, so I don't even know what I would do if I found the discontinuities.

2 Comments

What do you know about the discontinuity?
Hi,
Are you modeling a physical system? If that is the case mostly the would obtain a stiff set of differential equations. In this case it might be better to use some of the stiff solvers like ode15s.
If you DAE then using ode23t might help.
Some of the guidelines can be found at the link given below: http://www.mathworks.com/help/simulink/ug/use-auto-solver-to-select-a-solver.html
Hope this helps
regards
Rakesh

Sign in to comment.

Answers (0)

Tags

Asked:

YH
on 8 Mar 2016

Commented:

on 16 Mar 2016

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!