I want to change/switch between the tabs in the GUI (App Designer) when i press the button?

156 次查看(过去 30 天)
Please look at the attached picture and help me!

采纳的回答

Madeline Gardner
Madeline Gardner 2018-7-3
Hello!
Add a callback to the button that contains the code
app.TabGroup.SelectedTab = app.InputsTab;
You may need to change the variable names based on what you have in your code, but this should let the button control the active tab.
Hope that helps!
  5 个评论

请先登录,再进行评论。

更多回答(2 个)

Anas  Akhtar
Anas Akhtar 2021-5-4
For further clarification to the answer given by Madeline Gardner:
app.TabGroup.SelectedTab = app.InputsTab;
In the above code, the "SelectedTab" should not be changed to the name of your current tab where your 'button' is situated. You should only change the "InputsTab" with the name of the tab that you want to switch to, when you push the button.
P.S. I am adding this clarification because as a beginner in MATLAB, I struggled for two hours due to this small confusion.
Regards,
Akhtar.
  3 个评论

请先登录,再进行评论。


sow amadou
sow amadou 2020-11-23
Thx

类别

Help CenterFile Exchange 中查找有关 Develop Apps Using App Designer 的更多信息

产品


版本

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by