MATLAB Programming/Entering data at the command line

The input function lets your scripts process data entered at the command line. All input is converted into a numerical value or array. The argument for the input function is the message or prompt you want it to display. Inputting strings require an additional 's' argument. Example: Then running the script would produce the output: Please enter a value for x:3