28.12.2012 Views

Figure Properties - SERC

Figure Properties - SERC

Figure Properties - SERC

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

inputdlg<br />

2inputdlg<br />

Purpose Create input dialog box<br />

Syntax answer = inputdlg(prompt)<br />

answer = inputdlg(prompt,dlg_title)<br />

answer = inputdlg(prompt,dlg_title,num_lines)<br />

answer = inputdlg(prompt,dlg_title,num_lines,defAns)<br />

answer = inputdlg(prompt,dlg_title,num_lines,defAns,Resize)<br />

Description answer = inputdlg(prompt) creates a modal dialog box and returns user<br />

inputs in the cell array. prompt is a cell array containing prompt strings.<br />

2-1182<br />

answer = inputdlg(prompt,dlg_title) dlg_title specifies a title for the<br />

dialog box.<br />

answer = inputdlg(prompt,dlg_title,num_lines) num_lines specifies the<br />

number of lines for each user-entered value. num_lines can be a scalar, column<br />

vector, or matrix.<br />

If num_lines is a scalar, it applies to all prompts.<br />

If num_lines is a column vector, each element specifies the number of lines<br />

of input for a prompt.<br />

If num_lines is a matrix, it should be size m-by-2, where m is the number of<br />

prompts on the dialog box. Each row refers to a prompt. The first column<br />

specifies the number of lines of input for a prompt. The second column<br />

specifies the width of the field in characters.<br />

answer = inputdlg(prompt,dlg_title,num_lines,defAns) defAns specifies<br />

the default value to display for each prompt. defAns must contain the same<br />

number of elements as prompt and all elements must be strings.<br />

answer = inputdlg(prompt,dlg_title,num_lines,defAns,Resize) Resize<br />

specifies whether or not the dialog box can be resized. Permissible values are<br />

'on' and 'off' where 'on' means that the dialog box can be resized and that<br />

the dialog box is not modal.<br />

Example Create a dialog box to input an integer and colormap name. Allow one line for<br />

each value.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!