One can work with GNU Octave in two modes.
The first is the interactive mode;
in this mode, we can keep giving commands to Octave and it
executes them immediately.
On the other hand, it is also possible to run it the
script mode; in this mode, all
the commands are written to a file and the file
can then be processed in GNU Octave. If the file
is named with an .m extension, it is sufficient
to just write the name of the file in the GNU Octave prompt. Otherwise, we have to use the command source("filename") to run the script file.
The typical GNU Octave script files are given an extension
of .oct in these notes.
|