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

后端 未结 4 1446
时光取名叫无心
时光取名叫无心 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:36

    Here's one idea. You could put the directory containing those header files up at the front of the MATLAB path, so when exist() goes looking through the path, it finds them quickly and doesn't have to search through the rest of the entries. If it's spending its time stepping through your path, that may help.

提交回复
热议问题