Code covered by the BSD License  

Highlights from
Standalone Pulldown Menus

5.0

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

Standalone Pulldown Menus

by

 

Standalone pulldown menus with title.

| Watch this File

File Information
Description

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

Acknowledgements

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

Works with MATLAB 7.10 (R2010a)

Contact us