input() function
result = input(prompt)
str = input(prompt, 's')
- result = input(prompt) displays the prompt string on the screen, waits for input from the keyboard, evaluates any expression in the input, and returns the result.
- str = input(prompt, 's') returned the entered text as Matlab string, without evaluating expression.
No comments:
Post a Comment