original code from cewit05
Merge branch 'master' of https://github.com/sickcpt/bio_matlab