Hello, I'm a beginner in Matlab GUI, I have a tabgroup like bellow code and a push button, I don't know how to code the callbacks in order to change tab by pressing the push button.
unction Main_TabbedTestclc; clear; close all;%% Base figure
S.fig = figure('NumberTitle','off', 'Name', 'Main_TabbedTest', ... 'MenuBar','none', 'ToolBar','none', 'Units','Norm', ... 'Position',[.2 .2 .6 .6], 'Resize','off', 'Color',.94*[1 1 1]);%% Tabs
S.tb = uitabgroup('unit','norm', 'pos',[0 0 1 1]);%[0 .3 1 .7]
S.tab1 = uitab('parent',S.tb, 'title',' Tab 1 ');S.tab2 = uitab('parent',S.tb, 'title',' Tab 2 ');FS=14;%======== 'Pushbutton'==========
S.Apply = uicontrol('parent',S.tab1,'style','pushbutton', 'unit','norm', ... 'pos',[0.65 0.23 0.13 0.08],'String','Next tab','fontname','Cambria','fontsize',FS,'TooltipString','Push to aplly properties ',... 'Callback',@buttonApply );
Best Answer