related to matlab----> tranfer all item one by one from one listbox to another
Mostra commenti meno recenti
ADDREMOVELIST creates a GUI which contains two main listboxes, one on the left and one on the right. With the usage of two buttons (Add/Remove) the user can select items from the list on the left and transfer them to the list on the right and vice versa. Two checkboxes allow selecting multiple elements from each list and sorting the list contents respectively. Hitting the OK button returns ADDREMOVELIST outputs (depending on user selections) in MATLAB's workspace. Hitting the Cancel button returns default outputs.
Risposte (1)
Image Analyst
il 20 Lug 2012
Modificato: Image Analyst
il 20 Lug 2012
Sounds like homework. Hint: the get() and set() functions allow you to read and load the items in the listbox.
allItems = get(listboxHandle, 'String');
selectedItems = get(listboxHandle, 'Value');
The "max" property must be 2 to be able to select multiple items. I imagine you can now handle it from here.
Categorie
Scopri di più su Interactive Control and Callbacks in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!