What causes an invalid file identifier in MATLAB?

前端 未结 11 2102
余生分开走
余生分开走 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:04

    I had the file opened in excel and as a result fopen returned a -1. Took me forever to find such a trivial problem.

提交回复
热议问题