MATLAB中inputdlg的使用
来源:互联网 发布:淘宝美工和室内设计 编辑:程序博客网 时间:2024/04/20 07:36
原文地址:MATLAB中inputdlg的使用作者:何勍
inputdlg
prompt 包含对话框中输入框之上的提示台词的cell array。
eg:prompt = {'Enter matrix size:','Enter colormapname:'};
answer 返回包含每个输入框的结果的一个cell array。
eg:answer = {'1','2'};
answer = inputdlg(prompt,dlg_title)
dlg_title对话框的标题。
answer =inputdlg(prompt,dlg_title,num_lines)
num_lines对话框中输入框的行数。
answer =inputdlg(prompt,dlg_title,num_lines,defAns)
defAns对话框中默认显示的数据,cell 类型。
eg:defAns = {'20','hsv'};
answer =inputdlg(prompt,dlg_title,num_lines,defAns,options)
options对话框的一些属性的设置,包括:
如果options是一个字符串‘on',那对话框横向的大小可变。
如果options是一个结构体,那么此结构体包含以下三个域:
Resize:Can be'on' or 'off' (default). If 'on', the window is resizablehorizontally.
WindowStyle:Can be either 'normal' or 'modal'(默认值,模式对话框,禁止其他输入).
Interpreter:Can be either 'none' (default) or 'tex'. If the valueis 'tex', the prompt strings are rendered using LaTeX.
创建并打开输入对话框。
语法:answer = inputdlg(prompt)prompt 包含对话框中输入框之上的提示台词的cell array。
eg:prompt = {'Enter matrix size:','Enter colormapname:'};
answer 返回包含每个输入框的结果的一个cell array。
eg:answer = {'1','2'};
answer = inputdlg(prompt,dlg_title)
dlg_title对话框的标题。
answer =inputdlg(prompt,dlg_title,num_lines)
num_lines对话框中输入框的行数。
answer =inputdlg(prompt,dlg_title,num_lines,defAns)
defAns对话框中默认显示的数据,cell 类型。
eg:defAns = {'20','hsv'};
answer =inputdlg(prompt,dlg_title,num_lines,defAns,options)
options对话框的一些属性的设置,包括:
如果options是一个字符串‘on',那对话框横向的大小可变。
如果options是一个结构体,那么此结构体包含以下三个域:
Resize:Can be'on' or 'off' (default). If 'on', the window is resizablehorizontally.
WindowStyle:Can be either 'normal' or 'modal'(默认值,模式对话框,禁止其他输入).
Interpreter:Can be either 'none' (default) or 'tex'. If the valueis 'tex', the prompt strings are rendered using LaTeX.
0 0
- MATLAB中inputdlg的使用
- MATLAB中inputdlg的使用
- MATLAB中inputdlg的使用
- matlab中lsim的使用
- Matlab中addpath的使用
- Matlab中addpath的使用
- matlab 中 svm的使用
- MATLAB中libsvm的使用
- matlaB中 libsvm的 使用
- MATLAB中ones()的使用
- Matlab中grid 的使用
- matlab中imtool的使用
- Matlab中冒号的使用
- Matlab中fspecial的使用
- matlab中meshgrid的使用
- matlab 中 camlight 的使用
- dialog.obj:-1: error: LNK2019: 无法解析的外部符号 "public: __cdecl InputDlg::InputDlg(class QWidget *)" (??0I
- matlab GUI之常用对话框(四)---输入对话框 inputdlg、目录对话框 uigetdir、列表对话框 listdlg
- Matlab中save函数的使用
- MATLAB中的循环语句(转)
- 用matlab做聚类分析
- matlab中如何封装打包成exe…
- 小波变换在图像处理中的应用
- MATLAB中inputdlg的使用
- 支付婊事件
- Matlab中imadjust函数的用法
- IT行业技术人员的核心竞争力
- MATLAB函数flipud简介
- GUI常用到的一些网站或者资料
- MATLAB应用中常用的一些网址
- 如何简单的实现UINavigationViewController侧滑返回上一页功能
- MATLAB连接MYSQL搞数据