How to add several interfaces in one interface of MATLAB GUI
显示 更早的评论
Hi Actually I want to add different element in one GUI interface and by clicking different element different interfaces will be appeared for different calculation and will give different transfer matrices those will be calculated together by pressing pushbutton. Please if anybody have any idea tell me as I am trying from many days but don't know how to do it. Thanks to all
采纳的回答
更多回答(2 个)
Lalit Patil
2013-2-23
0 个投票
uicontrol( 'Style', 'push', 'Position', [20 190 250 30],'fontsize',10,'string','Your GUI name', 'Callback',@(src, event) GUI name() );
Write this script below opening function.. and at place Your GUI name write the name of that gui which you want to open..
5 个评论
Das Bably
2013-2-23
Lalit Patil
2013-2-23
If you want to insert 4GUI then write this line four times.
uicontrol( 'Style', 'push', 'Position', [20 190 250 30],'fontsize',10,'string','Button1', 'Callback',@(src, event) Your 1st GUI name() );
uicontrol('Style', 'push', 'Position', [20 130 250 30],'fontsize',10,'string','Button2', 'Callback',@(src, event) Your 2nd GUI name() );
uicontrol( 'Style', 'push', 'Position', [20 70 250 30],'fontsize',10,'string','Button3', 'Callback',@(src, event) Your 3rd GUI name() );
uicontrol('Style', 'push', 'Position', [20 10 250 30],'fontsize',10,'string','Button4', 'Callback',@(src, event) Your 4th GUI name() );
And so on..
Das Bably
2013-2-23
Das Bably
2013-2-25
Das Bably
2013-2-25
per isakson
2013-2-25
编辑:per isakson
2013-2-25
0 个投票
See
- uitab and uitabgroup (Matlab functions with hidden documentation - open the files)
- Tab panels – uitab and relatives
- TabPanel Constructor v2.8 (2010)
- search the File Exchange for more
- uitabpanel
类别
在 帮助中心 和 File Exchange 中查找有关 Interactive Control and Callbacks 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!