From: Dominique on
I am trying to generate a bifurcation diagram using the events function with ode45. However, I know that setting value = t mod (2pi) is wrong for my event function and I cannot figure out what to use as t is non-periodic and unbounded.

Any help would be much appreciated