How to change displayed plot in a GUI with pop-up menu.
4 次查看(过去 30 天)
显示 更早的评论
I am developing a GUI using guide for a function I have written which results in (a minimum) of 5 plot figures. Is there a way that i can use a popup menu (in which i already have the 5 plots as selectable items) to choose which plot the user sees? Presently the target axes (axes1) is populated with the last plot the function produces.
0 个评论
采纳的回答
Joseph Cheng
2016-6-10
编辑:Joseph Cheng
2016-6-10
Yes.... look at the guide quick start templates. type in guide into the workspace and it'll open the quick start window. Select the GUI with Axes and Menu template and there is a example of plots, axis and button implementation. you can adjust the code and instead use the popup callback to do your plotting when that value changes. the implementation is similar to how the button update will do except you're checking changed value within the popup callback
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Interactive Control and Callbacks 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!