Standalone Pulldown Menus

Standalone pulldown menus with title.
528 download
Aggiornato 10 ago 2010

Visualizza la licenza

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

Cita come

Kevin Crosby (2025). Standalone Pulldown Menus (https://www.mathworks.com/matlabcentral/fileexchange/28443-standalone-pulldown-menus), MATLAB Central File Exchange. Recuperato .

Compatibilità della release di MATLAB
Creato con R2007a
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS Linux
Categorie
Scopri di più su Migrate GUIDE Apps in Help Center e MATLAB Answers
Riconoscimenti

Ispirato: loadFields from mat files

Community Treasure Hunt

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

Start Hunting!
Versione Pubblicato Note della release
1.0.0.0