What causes an invalid file identifier in MATLAB?

前端 未结 11 2107
余生分开走
余生分开走 2020-12-06 13:21

I have a MATLAB script that I could have sworn worked fine the last time I used it (a year ago). Now, I get this error:

Invalid file identifier.  Use fopen         


        
11条回答
  •  粉色の甜心
    2020-12-06 14:03

    I had this problem. It turned out that the file I was trying to write was too large (I didn't have enough free space to accommodate it). However, the program didn't fail until the call to fclose. Very confusing!

    Try freeing up some space, or writing a very small file, to test this diagnosis.

提交回复
热议问题