all tasks
This commit is contained in:
parent
b83f433714
commit
68f8f3e56b
14735 changed files with 178959 additions and 0 deletions
20
Task/User-input-Text/MATLAB/user-input-text.m
Normal file
20
Task/User-input-Text/MATLAB/user-input-text.m
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
>> 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue