Be the first to rate this file! 15 downloads (last 30 days) File Size: 8.25 KB File ID: #15271

Add/Remove lists (select lists)

by Panagiotis Moulos

 

12 Jun 2007

Code covered by BSD License  

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

Download Now | Watch this File

File Information
Description

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)

MATLAB release MATLAB 7.1.0 (R14SP3)
Other requirements Tested under Windows XP
Zip File Content  
Other Files addremovelist/addremovelist.fig,
addremovelist/addremovelist.m
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
gui tools Panagiotis Moulos 22 Oct 2008 09:15:14
example Panagiotis Moulos 22 Oct 2008 09:15:14
add remove list Panagiotis Moulos 22 Oct 2008 09:15:14
addremove list Panagiotis Moulos 22 Oct 2008 09:15:14
select list Panagiotis Moulos 22 Oct 2008 09:15:14
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com