12.07.2015 Views

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

inputdlgPurpose2inputdlgCreate input dialog boxSyntaxDescriptionanswer = inputdlg(prompt)answer = inputdlg(prompt,title)answer = inputdlg(prompt,title,lineNo)answer = inputdlg(prompt,title,lineNo,defAns)answer = inputdlg(prompt,title,lineNo,defAns,Resize)answer = inputdlg(prompt) creates a modal dialog box and returns userinputs in the cell array. prompt is a cell array containing prompt strings.answer = inputdlg(prompt,title) title specifies a title for the dialog box.answer = inputdlg(prompt,title,lineNo) lineNo specifies the number oflines for each user entered value. lineNo can be a scalar, column vector, ormatrix.• If lineNo is a scalar, it applies to all prompts.• If lineNo is a column vector, each element specifies the number of lines ofinput for a prompt.• If lineNo is a matrix, it should be size m-by-2, where m is the number ofprompts on the dialog box. Each row refers to a prompt. The first columnspecifies the number of lines of input for a prompt. The second columnspecifies the width of the field in characters.answer = inputdlg(prompt,title,lineNo,defAns) defAns specifies thedefault value to display for each prompt. defAns must contain the samenumber of elements as prompt and all elements must be strings.answer = inputdlg(prompt,title,lineNo,defAns,Resize) Resizespecifies whether or not the dialog box can be resized. Permissible values are'on' and 'off' where 'on' means that the dialog box can be resized and thatthe dialog box is not modal.2-247

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

Saved successfully!

Ooh no, something went wrong!