function [ x, v, t ] = Euler_2ODE( x0, v0, t0, tN, N, g1, g2 )
%UNTITLED4 Summary of this function goes here
%   Detailed explanation goes here

t=linspace(t0, tN, N);
dt=t(2)-t(1);

x(1)=x0; v(1)=v0;
for i=2:N
   x(i)=x(i-1)+g1(x(i-1),v(i-1),t(i-1))*dt;
   v(i)=v(i-1)+g2(x(i-1),v(i-1),t(i-1))*dt;
end

end

