| 查看: 252 | 回复: 1 | |||
| 当前主题已经存档。 | |||
[交流]
【求助】matlab的GUI设计中,如何在一个窗口中调用另一个窗口?
|
|||
| 说得简单点,有两个界面,figure1和figure2,在figure1中调用callback函数,可以打开figure2。 |
» 猜你喜欢
考研调剂
已经有3人回复
266求调剂
已经有5人回复
268求调剂
已经有6人回复
085600,专业课化工原理,321分求调剂
已经有6人回复
一志愿哈尔滨工业大学085600英一数二337分求调剂
已经有3人回复
工科求调剂
已经有10人回复
材料295
已经有12人回复
材料专业383求调剂
已经有6人回复
一志愿江南大学085501机械工程专硕326分,本科佳木斯大学
已经有8人回复
总分328生物与医药考数学求调剂
已经有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














回复此楼