Megan - can you post the code for the function that loads the file? I think that is the second m-file shown in your screen shot of the editor. I see that you pass in a path and filename of the file to open, but it would be helpful to show the code that opens that file. Also, please copy and paste the full error message.
Inside your custom function make sure that you obtain the fileID using the fopenfunction and use it instead of directly using the filename to access the content.
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
1 Comment
Direct link to this comment
https://in.mathworks.com/matlabcentral/answers/654098-question-on-invalid-file-identifier#comment_1147938
Direct link to this comment
https://in.mathworks.com/matlabcentral/answers/654098-question-on-invalid-file-identifier#comment_1147938
Sign in to comment.