Chapter 4: Rationalizing: Octave Scripts
Understanding disp and input
b) |
d) |
e) |
Note that c) will likely give an error later. |
Understanding statements and Boolean operators
1 |
a) |
f) |
g) |
2 |
1 1 1 3 1 5 2 1 2 3 2 5 |
3 |
Line 5 does not match the |
Line 6 does not match the | |
|
4 |
Line 1: |
Line 3: is not a valid expression (use | |
Line 5: the |
Printing with printf
1 |
a) blank |
b) Hello Worl |
c) Hello Worl |
d) 2 |
e) 2.000000 |
f) 2.000000e+000 |