File Exchange

image thumbnail

Standalone Pulldown Menus

version 1.0 (2.39 KB) by

Standalone pulldown menus with title.

0 Downloads

Updated

View License

[A, B, C, ...] = PULLDOWN(TITLE, X, Y, Z, ...) will invoke a simple pulldown menu with title TITLE, and lists of choices in cell arrays, X, Y, Z, ..., and provides the choice index for list X in A, the choice index for list Y in B, etc.
 
CHOICES = PULLDOWN(TITLE, X, Y, Z, ...) does the same thing, except CHOICES is a numerical array containing all the individual choice indices from X, Y, Z, etc.
 
[...] = PULLDOWN(..., V) does the same thing, but will initialize the pulldown menus to the values in vector V. V may have fewer or more choices than the number of pulldown menus.
 
Examples:
 [letter, number] = pulldown('Test', {'A', 'B', 'C'}, num2cell(1:5))
 
 choices = pulldown('Mission', {'117', '116', '115', '121', '114'})

 % initialize to choices 'B' and 4
 choices = pulldown('Test', {'A', 'B', 'C'}, num2cell(1:5), [2 4])

Comments and Ratings (2)

Mr Smart

Kevin Crosby

Kevin Crosby (view profile)

Works with MATLAB 7.10 (R2010a)

MATLAB Release
MATLAB 7.4 (R2007a)
Acknowledgements

Inspired: loadFields from mat files

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video