Cannot CD to (name is nonexistent or not a directory)
古いコメントを表示
I am getting this error at cd(folder).
thisFile = mfilename('C:\Users\user\Documents\mu\see');
[folder,name] = fileparts(thisFile);
cd(folder)
addpath('\do');
採用された回答
その他の回答 (1 件)
Image Analyst
2016 年 2 月 14 日
1 投票
That folder does not exist. Just because you typed it in does not mean it will exist. Call the mkdir() function to create it, but chances are you should not be using cd anyway, but creating full filenames with the fullfile() function instead. See the FAQ: http://matlab.wikia.com/wiki/FAQ#Where_did_my_file_go.3F_The_risks_of_using_the_cd_function.
カテゴリ
ヘルプ センター および File Exchange で Search Path についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!