Summary
In this chapter, we have learned how to:
- Write a simple script and execute it.
- Use the control statements
if
andswitch
. - Use
for
,while
, anddo
statements. - Perform exception handling with the
unwind_protect
andtry
statements. - Put everything together in order to write a script with complicated program flow.
- Save and load our work using the
save
andload
commands. - Use the
printf
function.
In the next chapter you will use the statements learned here when you code your own Octave functions.
Get GNU Octave now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.