inputdlg
Create dialog box to gather user input
Syntax
Description
creates a modal
dialog box containing one or more text edit fields and returns the values entered by
the user. The return values are elements of a cell array of character vectors. The
first element of the cell array corresponds to the response in the edit field at the
top of the dialog box. The second element corresponds to the next edit field
response, and so on. answer = inputdlg(prompt)
Examples
Input Arguments
Output Arguments
More About
Tips
Users can enter scalar or vector values into Input dialog boxes. Use
str2numto convert space-delimited and comma-delimited values into row vectors and to convert semicolon-delimited values into column vectors. For example, ifanswer{1}contains'1 2 3;4 -5 6+7i', the conversion produces:input = str2num(answer{1}) input = 1.0000 2.0000 3.0000 4.0000 -5.0000 6.0000 + 7.0000i
Version History
Introduced before R2006a



