Great script. It's driven me nuts for a long time that outputting to pdf in Matlab is a headache.
It would be useful if there was an 'append' option for the pdf output. I don't always want to append to the end of a file, often I just want to update a figure and have it overwrite whatever was already there.