How to make Tabs in Matlab GUI without using GUIDE?

 Accepted Answer

uitab
Example:
fHdl = figure;
objTbGrp = uitabgroup('Parent', fHdl);
objTab = uitab('Parent', objTbGrp, 'Title', 'TAB 1 HEADING');
objTab = uitab('Parent', objTbGrp, 'Title', 'TAB 2 HEADING');

2 Comments

do you know how to make references on different guide elements to different tabs. for instance, one push button is placed on the first tab and another push button on the second tab?
Thank you, Aleksandar Petrov
@Aleksandar Petrov: allocate the tab handles to an array, and refer to those handles when defining the GUI elements (e.g. using the parent property, or as the first argument of many plotting functions).

Sign in to comment.

More Answers (0)

Categories

Find more on Interactive Control and Callbacks in Help Center and File Exchange

Asked:

on 27 Jun 2017

Commented:

on 27 Jun 2017

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!