cd command not working
조회 수: 8 (최근 30일)
이전 댓글 표시
I'm attempting to do very basic folder navigation, but it seems that my cd command is not functioning. I've done a simple command sequence:
>> test = cd
test = '/Users/myusername/Documents/MATLAB'
>> cd test
Error using cd: Cannot CD to test(Name is nonexistent or not a directory).
It seems that my version of matlab is not recognizing the full filename of its home directory? This doesn't make too much sense, especially when it functions normally just putting commands directly into the command line, but doesn't function when in script form. Help!
댓글 수: 0
채택된 답변
Fangjun Jiang
2018년 8월 6일
cd(test)
cd('/Users/myusername/Documents/MATLAB')
cd /Users/myusername/Documents/MATLAB
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!