question on Invalid file identifier
1 回表示 (過去 30 日間)
古いコメントを表示
Hi I keep getting the error Imvalid file identifier. use fopen to generate a valid file identifier.I don’t know what’s wrong, please help! Thank you!
1 件のコメント
Geoff Hayes
2020 年 11 月 20 日
編集済み: Geoff Hayes
2020 年 11 月 20 日
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.
回答 (1 件)
Srivardhan Gadila
2020 年 11 月 25 日
Inside your custom function make sure that you obtain the fileID using the fopen function and use it instead of directly using the filename to access the content.
You can look at other MATLAB Answers with the similar issue here: Help Center: Invalid file identifier. Use fopen to generate a valid file identifier.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で File Operations についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!