MATLAB Functions Help Desk

inputdlg

Purpose

Create input dialog

Syntax

Description

answer = inputdlg(prompt) creates a modal dialog box and returns user input for multiple prompts in the cell array answer. prompt is a cell array containing prompt strings.

answer = inputdlg(prompt,title) specifies a title for the dialog.

answer = inputdlg(prompt,title,lineNo) specifies the number of lines for each answer in lineNo, which is a scalar value applying to all prompts, or a vector having one element per prompt.

answer = inputdlg(prompt,title,lineNo,defAns) specifies the default answer to display for each question. defAns must contain the same number of elements as prompt.

Example

Create an input dialog to input an integer and colormap name:

See Also

textwrap, dialog, warndlg, helpdlg, questdlg, errdlg



[ Previous | Help Desk | Next ]