Added Matlab functions
Added examples to repo