question on tabbed plots.

조회 수: 1 (최근 30일)
Pappu Murthy
Pappu Murthy 2017년 11월 29일
댓글: Pappu Murthy 2017년 11월 30일
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'.

채택된 답변

David Barry
David Barry 2017년 11월 29일
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
Pappu Murthy
Pappu Murthy 2017년 11월 30일
This solved my problem. Thanks for the help. Pappu Murthy

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Interactive Control and Callbacks에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by