Update example1.m
Update example2.m
Update datacost.m
Update datacost.m

Rudimentary Octave compatibility.
Update example1.m

Rudimentary Octave compatibility
Update example2.m

Rudimentary Octave compatibility
Update datacost.m
Merge pull request #1 from DDeckard/master

update