Obtaining a path name and using it
7 次查看(过去 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 中查找有关 Filename Construction 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!