Problem with fprintf - invalid file intentifier
3 ビュー (過去 30 日間)
古いコメントを表示
So i have calculated some variables (X and Y) and i'm trying to insert them in a txt file. The .syn extension is for the exercise that i have. The error tham i'm getting is : Invalid file identifier. Use fopen to generate a valid file identifier. Anyone knows what's wrong?

0 件のコメント
採用された回答
Walter Roberson
2019 年 2 月 7 日
The filename you construct from the user's input together with the suffix .syn names a file that is not present in the current directory or anywhere on the MATLAB path and the user did not provide an appropriate path as part of their input.
This could for example happen if the user already provided the .syn extension. You always add a .syn extension so you could end up with NAME.syn.syn
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で File Compression についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!