input - Prompt for user input (original) (raw)
Scilab 5.3.3
- Scilab help
- Input/Output functions
- file
- getenv
- getio
- getpid
- getscilabkeywords
- halt
- host
- input
- load
- oldload
- oldsave
- read
- read4b
- readb
- save
- setenv
- unix
- unix_g
- unix_s
- unix_w
- unix_x
- writb
- write
- write4b
Please note that the recommended version of Scilab is 2026.0.1. This page might be outdated.
See the recommended documentation of this function
Scilab help >> Input/Output functions > input
Calling Sequence
x = input(message [, "string"])
Arguments
message
character string
"string"
the character string "string" (may be abbreviated to "s")
x
real number (or character string if"string" is in the calling sequence)
Description
input(message) gives the user the prompt in the text string and then waits for input from the keyboard. The input can be expression which is evaluated by evstr. If nothing but a carriage return is entered at the prompt input(message) returns an empty matrix
Invoked with two arguments, the output is a character string which is the expression entered at keyboard. If nothing but a carriage return is entered at the prompt input(message) returns a single white space " ".
Examples
//x=input("How many iterations?") //x=input("What is your name?","string")
See Also
- evstr — evaluation of expressions
- x_dialog — Dialog for interactive multi-lines input.
- x_mdialog — Dialog for interactive vector/matrix input.