Академический Документы
Профессиональный Документы
Культура Документы
- Input/Output
- Writing a program
Sources of input
Keyboard
Touch screen
Mouse
Microphone
USB Port (many devices)
Input file
Sources of output
Sources of input
Keyboard
Touch screen
Mouse
Microphone
USB Port (Arduino)
Input file
Sources of output
Sources of input
Keyboard
Touch screen
Mouse
Microphone
USB Port (Arduino)
Input file
Sources of output
variable to be read
message to user
the contents of a
variable without
printing the
variable name
>> paperL = 10
>> disp (paperL)
10
Field formatter
minmum width
Number
897
1003
C)
Sample Number
1 897
2 1003
B)
Sample
1
2
Number
897
1003
D)
Sample Number 1 897 2 1003
Writing a program!!!!!
The m-file/script editor/debugger can
be used to write, run, and debug a
program
The editor can be launched by
selecting New Script on the HOME
tab
Getting user
input
Calculation
Printing output