| 查看: 286 | 回复: 1 | |||
| 当前主题已经存档。 | |||
[交流]
【求助】matlab的GUI设计中,如何在一个窗口中调用另一个窗口?
|
|||
| 说得简单点,有两个界面,figure1和figure2,在figure1中调用callback函数,可以打开figure2。 |
» 猜你喜欢
申博发邮件
已经有9人回复
各位大神,目前国内有哪些比较好用的逆合成软件?
已经有9人回复
国社科系统bug了,是不是要放榜了?
已经有7人回复
上海工程技术大学激光智能制造课题组|2027级博士研究生招生公告
已经有8人回复
上海工程技术大学激光智能制造课题组招收博士研究生
已经有8人回复
★ ★ ★
z86197322(金币+1):谢谢参与
z86197322(金币+2): 1-26 11:19
z86197322(金币+2): 2010-03-22 16:36
z86197322(金币+1):谢谢参与
z86197322(金币+2): 1-26 11:19
z86197322(金币+2): 2010-03-22 16:36
|
两个fig文件相互调用: function fig1 h1_fig1=figure('name',' fig1',... 'numbertitle','off',... 'defaultuicontrolfontsize',6,... 'defaultuicontrolunits','normalized'); h1_button_call=uicontrol( 'parent',h1_fig1,... 'style','push',... 'position',[0.80 0.29 0.15 0.05],... 'string','显示fig2',... 'fontsize',12,... 'backgroundcolor','w',... 'callback','fig2');% 设置回调函数为caculate1 h1_button_close=uicontrol(... 'parent',h1_fig1,... 'style','push',... 'position',[0.80 0.02 0.15 0.05],... 'string','退出',... 'fontsize',12,... 'backgroundcolor','w',... 'callback','close'); function fig2 h2_fig2=figure('name',' fig2',... 'numbertitle','off',... 'defaultuicontrolfontsize',6,... 'defaultuicontrolunits','normalized'); h2_button_call=uicontrol('parent',h2_fig2,... 'style','push',... 'position',[0.80 0.29 0.15 0.05],... 'string','显示fig1',... 'fontsize',12,... 'backgroundcolor','w',... 'callback','fig1');% 设置回调函数为caculate1 h2_button_close=uicontrol(... 'parent',h2_fig2,... 'style','push',... 'position',[0.80 0.02 0.15 0.05],... 'string','退出',... 'fontsize',12,... 'backgroundcolor','w',... 'callback','close'); |

2楼2010-01-26 09:48:32










回复此楼