Adds avgtest matlab function.
Merge branch 'master' of https://github.com/stewartml/4thYearProject