function r = odefunBall(t,x,d,L,m)

r = zeros(5,1);

px = x(1);
vx = x(2);
py = x(3);
vy = x(4);
F = x(5);
g = 9.8;

r(1) = vx - d(1);
r(3) = vy - d(3);
r(2) = -F*px/L/m - d(2);
r(4) = 1/m*(m*g - F*py/L) - d(4);
r(5) = 2*px*vx + 2*py*vy;
