Matlab基本函数-menu函数
来源:互联网 发布:雅思高分知乎 编辑:程序博客网 时间:2024/04/29 00:59
1、menu函数:产生菜单
2、用法说明
m = menu('title','n1','n2',......,'nn') 函数显示以字符串变量‘title’为标题的菜单,选项为字符串变量:‘n1’,......,返回所输入的值到m
3、举例说明
>> m = menu('登录注册界面','登录','注册','取消','返回')m = 1>> m = menu('登录注册界面','登录','注册','取消','返回')m = 2>> m = menu('登录注册界面','登录','注册','取消','返回')m = 3>> m = menu('登录注册界面','登录','注册','取消','返回')m = 4
4、附录
>> help menu menu Generate a menu of choices for user input. CHOICE = menu(HEADER, ITEM1, ITEM2, ... ) displays the HEADER string followed in sequence by the menu-item strings: ITEM1, ITEM2, ... ITEMn. Returns the number of the selected menu-item as CHOICE, a scalar value. There is no limit to the number of menu items. CHOICE = menu(HEADER, ITEMLIST) where ITEMLIST is a string, cell array is also a valid syntax. On most graphics terminals menu will display the menu-items as push buttons in a figure window, otherwise they will be given as a numbered list in the command window (see example, below). Example: K = menu('Choose a color','Red','Blue','Green') %creates a figure with buttons labeled 'Red', 'Blue' and 'Green' %The button clicked by the user is returned as K (i.e. K = 2 implies that the user selected Blue). See also uicontrol, uimenu, guide. Reference page in Help browser doc menu
2 0
- Matlab基本函数-menu函数
- Matlab基本函数-ceil函数
- Matlab基本函数-colormap函数
- Matlab基本函数-compass函数
- Matlab基本函数-complex函数
- Matlab基本函数-conj函数
- Matlab基本函数-contrast函数
- Matlab基本函数-cylinder函数
- Matlab基本函数-disp函数
- Matlab基本函数-exp函数
- Matlab基本函数-expm函数
- Matlab基本函数-feather函数
- Matlab基本函数-fix函数
- Matlab基本函数-floor函数
- Matlab基本函数-format函数
- Matlab基本函数-ginput函数
- Matlab基本函数-hidden函数
- Matlab基本函数-imag函数
- 黑马程序员_ 正则表达式(笔记)
- NS2 Tcl语言基础知识加深强化
- windows8商店应用程序开发数据绑定
- SPFA判断负权回路+uva558
- linux c/c++ 加油站
- Matlab基本函数-menu函数
- .vimrc
- EF 向SQL SERVER 新增数据时报字段值过大
- 适配器模式
- String.valueOf()[新的判空语句]
- 个股牛市的条件(1)
- 浅淡神经网络与遗传算法寻优求参数
- 电脑死机的情况与避免策略
- RedHat RealTime Kernel