Invalid file identifier.Use fopen to generate a valid file identifier
1 次查看(过去 30 天)
显示 更早的评论
I am getting this error :
Invalid file identifier.Use fopen to generate a valid file identifier
Once it goes through my data without any and others this error occur. I add that i have 11 thousand files to open and then to write it in other directory. It occurs sometimes at the end sometimes and the beginning and sometimes it goes without error. Any ideas what my happend? I don't paste the code because in my opinion it's something different because it works but not all the time.
The error is saving : too many open files.
Why is it , because I am having only one file open . I close it everytime at the end of the loop.
1 个评论
Cedric
2013-8-5
Well, I think that the code would help actually.
Otherwise, check that you are closing files in all cases (sometimes people return from a function or break out a loop and forget to close open files). If you are generating file names, check that you are not using invalid characters, and when you open files, check that the fid returned by FOPEN is valid.
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Environment and Settings 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!