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
, anddostatements
.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.