How to add several interfaces in one interface of MATLAB GUI
Show older comments
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
Accepted Answer
More Answers (2)
Lalit Patil
on 23 Feb 2013
0 votes
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 Comments
Das Bably
on 23 Feb 2013
Lalit Patil
on 23 Feb 2013
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
on 23 Feb 2013
Das Bably
on 25 Feb 2013
Das Bably
on 25 Feb 2013
per isakson
on 25 Feb 2013
Edited: per isakson
on 25 Feb 2013
0 votes
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
1 Comment
Das Bably
on 25 Feb 2013
Categories
Find more on Interactive Control and Callbacks in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!