What causes an invalid file identifier in MATLAB?

前端 未结 11 2127
余生分开走
余生分开走 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 13:59

    It also happens when trying to create a file in a non-existent directory. Try mkdir('folderName') within MATLAB or just create the directory beforehand.

提交回复
热议问题