<< clc | Console | terminal_size >> |
r = input(prompt_str) |
r = input(prompt_str, 's') |
a string: temp. prompt displayed
a string
Display prompt and wait for user input. input returns a string which is the expression entered at keyboard.
res = input('Please input a value ', 's');
r = execstr(['A = ', res, ';'], 'errcatch');
if (r)
disp('It was a value.');
disp(A)
else
disp('It was NOT a value.');
end
Version | Description |
---|---|
1.0.0 | initial version |
Allan CORNET