matlab
Merge pull request #7 from PetterS/matlab

Matlab code added with a figure from the paper.