Contents Previous Next Subchapters

Putting A Prompt In The Input Dialog
Syntax input(prompt)
See Also input , and input(prompt, "password")

Displays prompt as the caption of a dialog in which data can be entered from the keyboard, where prompt is a character row vector. The return value is the text input in the dialog as a character row vector.

If you enter
     degrees = input("Enter angle in degrees: ")
     radians = atod(degrees) * PI / 180
     print degrees , "degrees =", radians, "radians"
O-Matrix will display the following dialog box:
If you enter 180 in the dialog box, O-Matrix will respond
     180 degrees = 3.14159 radians