Im Having trouble writing an if statement with the time variable of the ode45 function.
I don't know if i need to create a new variable, which is not what i want, but just to create and if statement with the t variable from ODEs.
Hope someone knows how to solve this problem
Thank you