Add/Remove lists (select lists)

Add and remove elements from one list to another. Multiple add/remove possible.
1.4K Downloads
Updated 12 Jun 2007

View License

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.

The main output of the script is a cell array of strings containing the elements that were added from the list on the left (initial list, list to select from) to the list on the right (new list, selected elements). There exist other outputs (e.g. the remaining contents of the left list etc.) The user can find extensive help with many examples inside addremovelist.m (or by typing 'help addremovelist' in MATLAB's command window)

Cite As

Panagiotis Moulos (2024). Add/Remove lists (select lists) (https://www.mathworks.com/matlabcentral/fileexchange/15271-add-remove-lists-select-lists), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R14SP3
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Migrate GUIDE Apps in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!

addremovelist/

Version Published Release Notes
1.0.0.0