How to access 2 push buttons within a different push button in gui matlab?
4 次查看(过去 30 天)
显示 更早的评论
In my GUI matlab, I have 2 push buttons which plots graph on pushing them. Now I want to access these 2 push buttons using a 3rd push buttons which works something like this: When push button 3 is pressed, It checks which of the first two buttons is pressed, Then if button 1 is pressed, Code of 1 is executed, Else If button 2 is pressed, Code of 2 is executed . Else If none of the button 1 or 2 is pushed, It returns nothing. End
I know it has to do something with Calling the push buttons , but am not able to figure it out. Any help will be appreciated .
1 个评论
Geoff Hayes
2015-2-2
Faiza - do you perhaps mean that you have two radio buttons that when selected will each plot a different graph, and that you have a push button which determines which radio button has been selected and so will execute the correct branch? Or do you really have three push buttons and that you want the code to "remember" whether it was push button 1 or push button 2 that was last pressed?
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Migrate GUIDE Apps 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!