From the official website:
- GNU Octave is a high-level interpreted language, primarily intended for numerical computations. It provides capabilities for the numerical solution of linear and nonlinear problems, and for performing other numerical experiments. It also provides extensive graphics capabilities for data visualization and manipulation. Octave is normally used through its interactive command line interface, but it can also be used to write non-interactive programs. The Octave language is quite similar to Matlab so that most programs are easily portable.
Install the package.
Run the GUI app with octave or the CLI app with octave-cli.
Alternative graphical interfaces
The default octave GUI is included in thepackage. Alternatively, you can use one of the following unofficial GUIs:
- Cantor — A graphical user interface that delegates its mathematical operations to one of several back ends (Scilab, Maxima, Octave and others).
- QtOctave — A Qt frontend for Octave.
Using Octave's installer
Packages can be managed using Octave's installer. They are installed to ~/octave, or in a system directory with the -global option. To install a package:
octave:1> pkg install -forge packagename
To uninstall a package:
octave:3> pkg uninstall packagename
Some packages get loaded automatically by Octave, for those which do not:
octave:4> pkg load packagename
octave:5> pkg load all
To see which packages have been loaded use
pkg list, the packages with an asterisk are the ones that are already loaded.
A way to make sure that all packages gets loaded at Octave startup:
## System-wide startup file for Octave. ## ## This file should contain any commands that should be executed each ## time Octave starts for every user at this site. pkg load all
Using the AUR
FLTK is the default plotting backend. Alternatively you can use the Gnuplot backend by installingand running the following command:
To make this change permanent add it to your
Reading Microsoft Excel Spreadsheets
You can open
.xlsx files with the
xlsread function, which requires the AUR package:
octave:1> odsread('myfile.ods'); octave:1> xlsread('myfile.xls'); octave:1> xlsread('myfile.xlsx');
Converting to CSV format
After the conversion is complete you can use the build-in Octave function
Zsh Undecodable Token
If you get error
undecodable token: b(hex)[23m
when printing, installand relogin.