If I open my GUI from the folder where it is located, the tool bar buttons do not function. The toolbar is there but pressing the button does nothing.
However, the buttons do work when I press new, then GUI, then open existing GUI, and select the same GUI. Why does the coding work in this method but not the other?

 採用された回答

Steven Lord
Steven Lord 2015 年 9 月 2 日

0 投票

How are you opening the GUI in the first case? Are you double-clicking the figure file or opening it with OPENFIG or do you run the GUI function?

4 件のコメント

shannon stoffel
shannon stoffel 2015 年 9 月 2 日
I was opening the fig file. I ended up manually coding each button, instead of using the defaults and that ended up solving the issue. So I am curious to as if there is a problem with their defaults right now. So if anyone else has this issue, change the buttons manually!
Steven Lord
Steven Lord 2015 年 9 月 2 日
To start a GUIDE-generated GUI, you MUST run the function file. Running the function file initializes the GUI; opening the figure file alone skips that initialization.
shannon stoffel
shannon stoffel 2015 年 9 月 2 日
Hmm well the way I opened it still worked for me perfectly
shannon stoffel
shannon stoffel 2015 年 9 月 3 日
thanks for the help though! I just wanted my GUI to be opened in any form in case they have no experience with Matlab!

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File Exchange で Develop Apps Using App Designer についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by