Hallo guys, I had ODE in my code. I solved it using an ode15i function. My code is such that the inputs of the ode15i function change when the output of the ODE reaches a limit. I did successfully solve the ODE and got the plot. Now I want to differentiate the solution to get the accelerations. I tried using diff() operator and passed the numerical outputs of the ODE but the graph seems incorrect (seems discontinous with sudden peaks and jumps).
Is there any way that I can differentiate the numerical solution / plot obtained from the ODE .
Best Answer