How to link a push button and Listbox in Matlab GUI.
显示 更早的评论
I am a starter in Matlab and Walter Roberson helped me with my precious question. COuld Someone help me with the code for the Steps 1 & 2 mentioned below. I have just started Matlab and also taking online training classes since i got time constraints seeking for help. Thanks.I intend to have this GUI:
- One Push Button to load mat files.
- List box linked push button (1) so list populates on its own.
- Another push button so i could select from the list box and plot a contour.
- To plot x,y,z Radio buttons.
Is this Possible? If yes please could u help me with this.
Thanks.
回答(2 个)
Walter Roberson
2015-6-15
0 个投票
No, as explained in http://uk.mathworks.com/matlabcentral/answers/223798-how-do-i-link-a-pushbutton-and-a-list-box list boxes do not populate themselves.
The code to load a .mat file as a result of pushing a button is given in the above link.
类别
在 帮助中心 和 File Exchange 中查找有关 Creating, Deleting, and Querying Graphics Objects 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!