PHYS220: Scientific Modelling 2001

MATLAB codes:

biased_coin.m - Script illustrating Bayesian treatment of tosses of a biased coin.

predator_prey1.m - Script to solve the Lotka-Volterra equations. This script requires the function lotka_volterra.m which defines the RHS of the ODEs.

predator_prey2.m - Script to solve the modified Lotka-Volterra equations with the prey following logistic growth (in the absence of predators). This script requires the function lotka_volterra_mod.m which defines the RHS of the ODEs.

predator_prey3.m - Script to solve a more realistic predator-prey ecosystem. Now the predators follow logistic growth to a carrying capacity proportional to the prey population, and the prey grow logistically in the absence of predators and are subject to realistic predation (i.e. the finite capacity of individual predators to kill prey is modelled). This script requires the function lotka_volterra_mod2.m which defines the RHS of the ODEs.


Please send comments to Mike Wheatland

© Copyright September 1999, Updated February 2001, Macquarie University
http://www.physics.mq.edu.au/units/phys220/