how can i solve discontinuos functions with ODE45 ?

hi guys,
I was wondering how I can solve discontinuous functions with ODE45?
I heart that I need to restart the integration at each step, but do not know how to do that.
can anyone tell me how to solve that?
thanks in advance

Answers (0)

Products

Release

R2018b

Asked:

on 30 Nov 2018

Edited:

on 30 Nov 2018

Community Treasure Hunt

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

Start Hunting!