How do I make a GUI created by guide a single united function

I notice the GUIs created by Guide comes with multiple different and individual functions (opening, output, create, callbacks, uipanels etc). Each function acts individually and separately from others. How do I make all of those functions to be combined somehow and belong as nested functions to the main one?

 採用された回答

Walter Roberson
Walter Roberson 2018 年 6 月 11 日

0 投票

You cannot do that with GUIDE.
You could edit the code the GUIDE produces to make the functions nested, but if you do that then GUIDE will lose track of the functions.
You should probably examine the newer App Designer.

4 件のコメント

Stelios Fanourakis
Stelios Fanourakis 2018 年 6 月 11 日
ANd if GUIDe loses track of the functions then what does it mean? I want to keep the GUI (.fig) as it is and have the absolute control of my functions (keep them as nested). How do I do that?
Walter Roberson
Walter Roberson 2018 年 6 月 11 日
It means that if you went back into GUIDE then GUIDE would think that your functions do not exist and would want to generate new callbacks for them. This would lead to trouble if you wanted to edit the fig afterwards.
"I want to keep the GUI (.fig) as it is and have the absolute control of my functions"
Have GUIDE generate a .fig only. Then leave GUIDE and write your own code that uses the .fig however you want; and don't go back to GUIDE.
Stelios Fanourakis
Stelios Fanourakis 2018 年 6 月 11 日
編集済み: Stelios Fanourakis 2018 年 6 月 11 日
Sounds interesting. I can have elements like sliders, push buttons etc created by GUIDE and have the freedom to alter them as I wish. Let me try this.
Stelios Fanourakis
Stelios Fanourakis 2018 年 6 月 11 日
ANd what about the AppDesigner? Is it better than GUIDE? I have no experience at all with AppDesigner. Can I have nested functions there? I don't see any option to generate both fig and m files in AppDesigner

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

その他の回答 (0 件)

カテゴリ

Community Treasure Hunt

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

Start Hunting!

Translated by