How can I close the currently open directory in matlab
15 ビュー (過去 30 日間)
古いコメントを表示
Hello,
I want to close the currently open directory in matlab
cd('C:\folder1\new1');
I want to close the above opened directory.
Thanks in Advance
0 件のコメント
回答 (1 件)
Chunru
2022 年 9 月 15 日
% You change directory rather than close directory
% We make two directories here for example
mkdir dir1/dir1_1
mkdir dir2
% remember the current directory
cdir = pwd;
cd dir1
% do whatever in this directory
ls
% Now change back to the original directory
cd(cdir)
pwd
ls
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Search Path についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!