Octave¶
GNU Octave is a high-level, interpreted, programming language for numerical computations. Octave is a structured language (similar to C) and mostly compatible with MATLAB. You may use Octave to avoid the need for a MATLAB license, both during development and as a deployed application. By doing so, you may be able to run your application on more systems or more easily distribute it to others.
This section illustrates how to submit a small Octave job to a PBS queue. This Octave example computes the inverse of a matrix.
Prepare an Octave script file with an appropriate filename, here named myjob.m:
Prepare a job submission file with an appropriate filename, here named myjob.sub:
The command octave myjob.m (without the redirection) also works in the preceding script.
Submit the job:
View job status:
View results in the file for all standard output, myjob.sub.omyjobid:
Any output written to standard error will appear in myjob.sub.emyjobid.
For more information about Octave: