MATLAB: How to change focused Tab on AppDesigner

How to change focused Tab on AppDesigner.

Best Answer

For instance, if there are two Tabs on TabGroup, you can capture the Handle for the second Tab by following.
>> h = app.TabGroup.Children(2);
You can then directly assign it to SelectedTab property.
>> app.TabGroup.SelectedTab = h;