Effacer les filtres
Effacer les filtres

question on tabbed plots.

2 vues (au cours des 30 derniers jours)
Pappu Murthy
Pappu Murthy le 29 Nov 2017
Commenté : Pappu Murthy le 30 Nov 2017
i have three tabs in my figure... something like H1 = uitab(tgp,'Title','Micrograph'); H2 = uitab(tgp,'Title','Histograms'); H3 = uitab(tgp,'Title','Original_MG');
Is there a way to show the current tab automatically without user clicking on the tab. For e.g. I have plots in tabs H1, and H2. Now the open tab is say H1. Now i try to plot something in H3. it is hidden until the user clicks on table H3 titled "Original_MG'.

Réponse acceptée

David Barry
David Barry le 29 Nov 2017
uitabgroup has a SelectedTab property which allows you to query the currently selected tab but also to change the currently selected tab. See doc
tgp.SelectedTab = H3;
  1 commentaire
Pappu Murthy
Pappu Murthy le 30 Nov 2017
This solved my problem. Thanks for the help. Pappu Murthy

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Interactive Control and Callbacks dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by