Effacer les filtres
Effacer les filtres

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

1 vue (au cours des 30 derniers jours)
tejasvee
tejasvee le 29 Avr 2017
Commenté : Star Strider le 30 Avr 2017
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.

Réponse acceptée

Star Strider
Star Strider le 29 Avr 2017
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 commentaires
tejasvee
tejasvee le 30 Avr 2017
thank you it worked.
Star Strider
Star Strider le 30 Avr 2017
My pleasure!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur File Operations dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by