Retain current directory

5 Ansichten (letzte 30 Tage)
Jason
Jason am 10 Aug. 2011
How can I set the current directory after I have initially selected it. I am performing some tasks on tiff images using a GUI. I initially set the directory by using an exdit box and use:
startpname=get(handles.editFolder,'String');
After this first selection, I then want to start in this directory for all other times.
Thanks Jason

Antworten (1)

Arturo Moncada-Torres
Arturo Moncada-Torres am 10 Aug. 2011
I recommend you to check the cd function documentation. On a quick thought, I suppose it must be something like:
startpname = get(handles.editFolder, 'String');
cd(startpname);

Kategorien

Mehr zu File Operations finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by