Contents Previous Next Subchapters

Obtaining A Text String Using The Input Dialog
Syntax input
See Also read , adddialog , and input(prompt)

Displays a dialog in which the user can enter a a line of text that is returned as a character row vector.

Selecting the "Ok" button or the enter key, signals that the text input is complete. Selecting the "Cancel" button, signals that the operation should be canceled and returns a vector with 0 column dimension. Selecting the "Help" button display this help section.

If you enter
     x = input
O-Matrix will display a dialog box with a line available for text input. If you enter the phrase "Hello World!" and then, in the Command window, enter
     print x
O-Matrix will respond
     Hello World!