I am using exist(x, \'file\') to check for the existence of a file on my machine. The execution of this command takes FOREVER (over 10 seconds per call!).
My matl
matl
Wow! That was a tough one. Bottom line: Delete %TEMP% files!
I had a few thousands files lying around in %TEMP%. It appears MATLAB really likes to go over and over the TEMP directory.
After clearing the TEMP folder, exist runs in no time!
exist
(Thanks Andrew for the Process Monitor advice!)