フィルターのクリア

Obtaining a path name and using it

3 ビュー (過去 30 日間)
Frank
Frank 2011 年 5 月 20 日
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)

採用された回答

Arnaud Miege
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 件のコメント
Frank
Frank 2011 年 5 月 20 日
Thank you!

サインインしてコメントする。

その他の回答 (1 件)

Oleg Komarov
Oleg Komarov 2011 年 5 月 20 日
pathname = [cd filesep 'Target'];
  1 件のコメント
Frank
Frank 2011 年 5 月 20 日
Thank you!

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeFile Operations についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by