Fixes to the MATLAB example script
Restore onCleanup() function and fix name
Use parse.isEmpty() instead of MATLAB bult-in empty()
Merge pull request #1 from sbesson/matlab_script

Matlab script fixes