a collection of general matlab functions used across projects by Peter Swain's lab (Edinburgh University).