Make the Atlas examples clean up their path changes

This should prevent the Atlas examples from cluttering up the Matlab path. The use of the builtin [onCleanup function](http://www.mathworks.com/help/matlab/ref/oncleanup.html) means that the path should be restored even if the function terminates early with an error.