Your equations must be set up as differential equations, using the Symbolic Math Toolbox diff function to create the derivatives.
Then, use the odeToVectorField and matlabFunction functions to create the necessary first-degree equations and the anonymous function to use with ode45.
Best Answer