In MATLAB exist( x, 'file' ) takes forever

后端 未结 4 1450
时光取名叫无心
时光取名叫无心 2021-02-19 12:46

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

4条回答
  •  渐次进展
    2021-02-19 13:29

    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!

    (Thanks Andrew for the Process Monitor advice!)

提交回复
热议问题