Error using: unable to read dataset1. No such file or directory found.

1 回表示 (過去 30 日間)
tejasvee
tejasvee 2017 年 4 月 29 日
コメント済み: Star Strider 2017 年 4 月 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.

採用された回答

Star Strider
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.
  2 件のコメント
tejasvee
tejasvee 2017 年 4 月 30 日
thank you it worked.
Star Strider
Star Strider 2017 年 4 月 30 日
My pleasure!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeFile Operations についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by