Accuracy of the first derivative with ode45
4 visualizzazioni (ultimi 30 giorni)
I am using ode45 to get solution of system with 4 differential equation of the first order. ode45 gives me result as value, but I need the first derivative of that value. So, I found two methods to do that.
First one, is the gradient command. The second one is sol and deval commands together. My question is, which of these two methods will give me more accurate result? And which of these two methods will give me accuracy of result same as accuracy of ode45?