Hi everybody
I have a perfectly functioning GUIDE that i would like to duplicate since i need both it and a slightly different version of it. The problem is that the GUIDE file (.fig) seems to be disconnected from his script.
I try to explain it a little better:
  • Item one the "editor" button in the tool-bar is disabled (grey)
  • Item one if I save the GUIDE with a different name (official and only way to rename a GUIDE and his script) the script name doesn't change. However the GUIDE keeps working, even with the .m file and the .fig file have different names.
  • Item one if I click "show callback" it opens the property inspector, instead of the function in the .m file
How can i "reconnect" them without having to re-do all the work from scratch?
If i copy all the button in a new GUIDE file, all the tag will be messed up and even if i copy-paste the script it will be a nightmare to fix them.
Any smarter solution? And moreover, what the hell caused this problem?
Thank you

 採用された回答

ES
ES 2013 年 10 月 31 日

1 投票

open the working GUI. Make sure in the Tools-> GUI Options the Generate Fig File and m File Option is selected and save the GUI by a new name. This will give you a GUI and m file by the same name. See if this works.

1 件のコメント

Luca Amerio
Luca Amerio 2013 年 10 月 31 日
In the GUI option you told me to look, the "Generate FIG file only" was selected. Changing it back to "Generate FIG file and MATLAB file" solved the problem.
I really don't know why it switched, but the important thing is that it has been solved.
Thank you very much

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File Exchange で Environment and Settings についてさらに検索

タグ

質問済み:

2013 年 10 月 31 日

コメント済み:

2013 年 10 月 31 日

Community Treasure Hunt

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

Start Hunting!

Translated by