Error using: unable to read dataset1. No such file or directory found.
1 回表示 (過去 30 日間)
古いコメントを表示
When i run my code it gives the above error even if dataset1 file is present. i checked using exist(dataset1.txt) then it returned 2. I have attached my code and data set.
0 件のコメント
採用された回答
Star Strider
2017 年 4 月 29 日
Remember to put single quotes around it. File names must be strings.
file_name = 'dataset1.txt';
Without the quotes or if the name of the file is mis-spelled will throw errors.
その他の回答 (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!