In: Math
With the aid of fourth order Runge-Kutta method, solve the competing species model defined by
dx/dt =x(2 − 0.4x − 0.3y), x(0) = 2
dy/dt =y(1 − 0.1y − 0.3x), y(0) = 4
where the populations x(t) and y(t) are measured in thousands and t in years. Use a step size of 0.2 for 0 ≤ t ≤ 2 and plot the trajectories of the populations with Matlab or GNU Octave.