Solving an ODE when the function is given as discrete values -matlab-
问题 I have the following ODE: x_dot = 3*x.^0.5-2*x.^1.5 % (Equation 1) I am using ode45 to solve it. My solution is given as a vector of dim(k x 1) (usually k = 41, which is given by the tspan ). On the other hand, I have made a model that approximates the model from (1), but in order to compare how accurate this second model is, I want to solve it (solve the second ODE) by means of ode45 . My problem is that this second ode is given discrete: x_dot = f(x) % (Equation 2) f is discrete and not a