RosettaCodeData/Task/User-input-Text/MATLAB/user-input-text.m

21 lines
276 B
Mathematica

>> input('Input string: ')
Input string: 'Hello'
ans =
Hello
>> input('Input number: ')
Input number: 75000
ans =
75000
>> input('Input number, the number will be stored as a string: ','s')
Input number, the number will be stored as a string: 75000
ans =
75000