Azzera filtri
Azzera filtri

Obtaining a path name and using it

3 visualizzazioni (ultimi 30 giorni)
Frank
Frank il 20 Mag 2011
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)

Risposta accettata

Arnaud Miege
Arnaud Miege il 20 Mag 2011
source_dir = uigetdir(); %Folder with the *.tif files
cd(source_dir); %Changes folder to chosen folder
mkdir('Target');
dest_dir = [pwd '/Target'];

Più risposte (1)

Oleg Komarov
Oleg Komarov il 20 Mag 2011
pathname = [cd filesep 'Target'];

Categorie

Scopri di più su File Operations in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by