GNU Octave is a free and open source interactive programming environment for numerical computations for Linux, Windows, BSD and MacOS. It comes with built-in 2D/3D plotting and visualization tools. Using this you can solve linear and nonlinear problems numerically. Octave is a free high-level language for mathematics. Octave syntax is largely compatible with Matlab. It is released under GNU General Public License.
Install GNU Octave on Ubuntu
You can install GNU Octave via snap, flatpak and native Ubuntu repositories.
Install GNU Octave via Snap:
Open the terminal command-line tool (ctrl+alt+t) and run this GNU Octave snap installation command.
sudo snap install octave
You can open GNU Octave from the application menu or from show applications menu from Ubuntu dock.
Install GNU Octave via ubuntu repositories:
In terminal application run all below commands one by one. If needed enter your Ubuntu user password during the installation.
sudo apt update
sudo apt install octave
sudo apt install liboctave-dev
Install GNU Octave via Flatpak:
If you want to install GNU Octave via the flatpak package, then you need to install and setup flatpak and flathub on your system. Follow the below link to install this on your system. If you already installed it then ignore this step.
After the installation of flatpak and flathub setup, run below GNU Octave flatpak installation command.
flatpak install flathub org.octave.Octave
Then run GNU Octave via below command.
flatpak run org.octave.Octave
That’s it.