Now uses MATLAB tempdir and tempname functions
Merge branch 'change-tmpfile'