cd command not working
14 ビュー (過去 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!