How can I manipulate the entries of a listbox or popup menu in MATLAB?
2 ビュー (過去 30 日間)
古いコメントを表示
I would like to know how to manipulate the entries of a listbox or popup menu in MATLAB.
採用された回答
MathWorks Support Team
2010 年 1 月 21 日
The example GUI attached illustrates how to rearrange, insert, add, and remove entries from a listbox. It can be applied to popup menus as well.
The example was made using GUIDE in MATLAB 6.0 (R12). However, the same code in the GUI's program file can be copied and pasted into the callback subfunctions created by a later version of GUIDE.
To run the example, use the following command
listboxExample
You can see each pushbutton's callback code by editing the file and finding the appropriate subfunction. The subfunctions are commented so that they are easy to understand.
0 件のコメント
その他の回答 (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!