Changing directories in the middle of a GUI function

1 回表示 (過去 30 日間)
William
William 2011 年 9 月 9 日
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?

採用された回答

Grzegorz Knor
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)
  1 件のコメント
William
William 2011 年 9 月 9 日
I would but the designer decided to use a .mat file that has the same name but different data for three different programs. I have no idea why he did that but it's on me to get it working.

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

その他の回答 (0 件)

カテゴリ

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