No BSD License
function yh = rk4(f, x, y, h) k1 = h* feval(f, x , y); k2 = h* feval(f, x + h./2 , y + k1./2 ) ; k3 = h* feval(f, x + h./2 , y + k2./2 ) ; k4 = h* feval(f, x + h, y + k3 ); yh = y + ( k1 + 2* k2 + 2* k3 + k4 )/6.0;
Contact us at files@mathworks.com