View License

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

» Watch video

Highlights from
Standalone Pulldown Menus

5.0 | 1 rating Rate this file 4 Downloads (last 30 days) File Size: 2.39 KB File ID: #28443 Version: 1.0

Standalone Pulldown Menus


Kevin Crosby (view profile)


Standalone pulldown menus with title.

| Watch this File

File Information

[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.
 [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])


This file inspired Load Fields From Mat Files.

MATLAB release MATLAB 7.4 (R2007a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (2)
14 Aug 2011 Mr Smart

10 Aug 2010 Kevin Crosby

Kevin Crosby (view profile)

Works with MATLAB 7.10 (R2010a)

Comment only

Contact us