Add/Remove lists (select lists)

Add and remove elements from one list to another. Multiple add/remove possible.

You are now following this Submission

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 (2026). Add/Remove lists (select lists) (https://www.mathworks.com/matlabcentral/fileexchange/15271-add-remove-lists-select-lists), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0