Error using: unable to read dataset1. No such file or directory found.
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
tejasvee
il 29 Apr 2017
Commentato: Star Strider
il 30 Apr 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.
0 Commenti
Risposta accettata
Star Strider
il 29 Apr 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.
Più risposte (0)
Vedere anche
Categorie
Scopri di più su File Operations in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!