Changing directories in the middle of a GUI function
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Hello,
I need to change directories in the middle of a GUI function do a directory a short distance away to run a function and then move back to the origonal directory the gui is running in. Will this cause any hiccups?
0 Kommentare
Akzeptierte Antwort
Grzegorz Knor
am 9 Sep. 2011
I suggest to use run function instead of change directory.
But if you want to change the directory, here is a code:
orgDir = pwd;
cd(DifferentDirectory)
% do something...
cd(orgDir)
Weitere Antworten (0)
Siehe auch
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!