Standalone Pulldown Menus

版本 1.0.0.0 (2.4 KB) 作者: Kevin Crosby
Standalone pulldown menus with title.
528.0 次下载
更新时间 2010/8/10

查看许可证

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

引用格式

Kevin Crosby (2024). Standalone Pulldown Menus (https://www.mathworks.com/matlabcentral/fileexchange/28443-standalone-pulldown-menus), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2007a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Migrate GUIDE Apps 的更多信息
致谢

启发作品: loadFields from mat files

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0.0