Summary

In this chapter, we have learned how to:

  • Write a simple script and execute it.
  • Use the control statements if and switch.
  • Use for, while, and do statements.
  • Perform exception handling with the unwind_protect and try statements.
  • Put everything together in order to write a script with complicated program flow.
  • Save and load our work using the save and load 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.