Changing directories in the middle of a GUI function
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
Grzegorz Knor
2011-9-9
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)
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 File Operations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!