initial commit
sample matlab scripts showing the general algorithm