'Load()' function cannot open a file though it exists
조회 수: 9 (최근 30일)
이전 댓글 표시
Dear all,
I am facing this problem, where my file is located at exactly the location that I pass to my load() function but it stills prompts "Unable to read file 'location'. No such file or directory." I even used the exist() function to check the existence of that file (the answer is yes). What's going on?

댓글 수: 0
채택된 답변
Kaushik Lakshminarasimhan
2017년 11월 5일
Your code is looking for a file called location which obviously doesn't exits. You need to use location as a variable name:
load(location)
추가 답변 (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!