Hi,

I have a script for Runge-Kutta 4th order method, but i'm not sure how to use it.

Matlab Source Code Examples

scroll to the middle where it says initial value ODE solutions and click on rk4ode2.m

So once I have that, how do i adapt it to fit my specific second order ode? I need to plot some graphs - y v. x, y' v. x, etc.

thanks!