Obtaining a path name and using it
조회 수: 17 (최근 30일)
이전 댓글 표시
Hello!
I need some help with getting a path name of a created folder within a directory. The script will create a folder within a specified folder, but how do I get the path for the newly created folder?
Thanks
-Frank
Code
source_dir = uigetdir(); %Folder with the *.tif files
cd(source_dir); %Changes folder to chosen folder
mkdir('Target')
dest_dir(pathname)
댓글 수: 0
채택된 답변
Arnaud Miege
2011년 5월 20일
source_dir = uigetdir(); %Folder with the *.tif files
cd(source_dir); %Changes folder to chosen folder
mkdir('Target');
dest_dir = [pwd '/Target'];
추가 답변 (1개)
참고 항목
카테고리
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!