related to matlab----> tranfer all item one by one from one listbox to another

10 views (last 30 days)
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.

Answers (1)

Image Analyst
Image Analyst on 20 Jul 2012
Edited: Image Analyst on 20 Jul 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.

Categories

Find more on Programming in Help Center and File Exchange

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!