简体   繁体   English

如何从 matlab 中的另一个 gui 选项卡运行 gui?

[英]How to run a gui from another gui tab in matlab?

I am unsure of how to call up and run a separate GUI from my main GUI homepage.我不确定如何从我的主 GUI 主页调用和运行单独的 GUI。 I am able to open it using uiopen(' ') but I am trying to get it to automatically run it if possible.我可以使用 uiopen(' ') 打开它,但如果可能的话,我试图让它自动运行。 I've created all of the GUI pages and I have set up the callbacks but I cant get it to work.我已经创建了所有的 GUI 页面并设置了回调,但我无法让它工作。

every GUI has a guifile.m, so you can just call the name of the 2nd GUI.每个 GUI 都有一个 guifile.m,因此您只需调用第二个 GUI 的名称即可。

for example, assuming you have two GUIs, gui1.{m,fig} and gui2.{m,fig} .例如,假设您有两个 GUI, gui1.{m,fig}gui2.{m,fig} In the OnButtonClick even in your gui1.m , you just call gui2 to open up the gui2 window.OnButtonClick中,甚至在您的gui1.m中,您只需调用gui2即可打开 gui2 window。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM