SelectBox

A dialog box for the user to select several items from a list of available items.
3K Downloads
Updated 3 May 2005

No License

SELECTBOX is a dialog box for the user to select several items from a list of available items.
%
% INPUT:
% title = the title of the box
% universe = a cellstring of available choices
% selections = an array of the indicies of pre-selected choices
% description = a short description of what to do
%
% OUTPUTS:
% out_index = an array of indicies of all selections (pre and post)
% out_cs = a cellstring of all selections (pre and post)
%
% EXAMPLE:
% sbtitle = 'MondoBetaCurve :: Select Securites';
% sbuniverse = { ' 8.625 07/23/21',' 4.250 08/08/21', ...
% ' 3.000 10/31/21','10.500 10/31/21', ...
% '11.250 10/31/21',' 7.750 10/31/21', ...
% ' 5.500 10/31/21',' 3.875 11/13/21', ...
% ' 3.875 02/24/22',' 8.375 05/19/22', ...
% ' 3.875 06/03/22','12.625 08/27/22', ...
% '10.375 08/27/22'};
% sbselections = [1 2 4];
% sbdescription = {['Select the securities that you want ' ...
% 'to use in your Beta Curve analyisis one'], ...
% ['at a time, pressing "ADD" after each' ...
% 'selection. When done, press "OK."']};
% [i,cs] = selectbox(sbtitle,sbuniverse,sbselection,sbdescription);
%
% SAMPLE OUTPUT:
% i = 1 2 4
% cs = ' 8.625 07/23/21' ' 4.250 08/08/21' '10.500 10/31/21'
%
% SEE ALSO: SearchReplaceGUI
%
% KEYWORDS: GUI guide uicontrol popup dialog box select choose pick

Cite As

Michael Robbins (2024). SelectBox (https://www.mathworks.com/matlabcentral/fileexchange/7141-selectbox), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R14SP1
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Dialog Boxes in Help Center and MATLAB Answers
Acknowledgements

Inspired: List Selection Dialog

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0.0

Added functionality. Sorting, help.