How to use uicontrol and callback for a user-defined input flow?
古いコメントを表示
I have being dealing with the following problem: in a GUI, user enters a number N. That creates two sets of N popupmenus. popup1 controls popup2: Let's say popup1 has options '1', '2' and '3'. If option '1' in popup1 is selected, popup2 menu should be 'A', 'B' and 'C', if '2' is selected in popup1, popup2 should be 'M', 'N' and 'P' and if option '3' is selected in popup1, popup2 should be 'X', 'Y' and 'Z'.
I have tried to use uicontrol and callback, and it creates the popups. The problem is that I don't know how to access the variables inside the popups. Does anyone know how to do this?
採用された回答
その他の回答 (1 件)
Image Analyst
2014 年 11 月 23 日
0 投票
Or use this framework where you can just plug your code into the callbacks for various sliders, listboxes, etc. http://www.mathworks.com/matlabcentral/fileexchange/24224
カテゴリ
ヘルプ センター および 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!