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!