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!