Watch this Author's files
Great file, used this to work with matlab -nodesktop option, which has a quite limited historic x)
Thanks for this great contribution! I was looking for this functionality, and it works great!
@Eric I got around the error problem in finish.m by placing the history_preserved command in a try cath block. So finish.m will look like:
Now it won't 'hang' your matlab but just display an error dialog before closing.