How to make Tabs in Matlab GUI without using GUIDE?

 采纳的回答

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 个评论

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).

请先登录,再进行评论。

更多回答(0 个)

类别

帮助中心File Exchange 中查找有关 App Building 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by