Questions tagged [octave]

For questions pertaining to Octave, a programming language primarily intended for scientific computations.  Use this tag for questions about installing, configuring or operating Octave (e.g., resolving operational failures).  Questions about programming are off-topic here and should be asked on Stack Overflow.

should be used for pertaining to Octave, a programming language primarily intended for scientific computations. Use this tag for questions about installing, configuring or operating Octave (e.g., resolving operational failures). Questions about programming are off-topic here and should be asked on Stack Overflow.

GNU Octave is a high-level scientific programming language intended for numerical computations.  It is largely compatible with MATLAB.

Octave is a free software and runs on GNU/Linux, macOS, BSD and Windows systems. It is one of the major free alternatives to MATLAB, the others being Scilab and FreeMat. Scilab, however is less compatible with MATLAB than Octave and FreeMat has not been updated since June 2013.

Octave has a graphical interface and a command line interface. By default, running octave in a terminal starts Octave CLI while octave --force-gui starts the GUI.

Octave can be configured from the GUI and from the ~/.octaverc configuration file.

While MATLAB has toolkits, Octave allows the installation of additional packages. Many MATLAB toolkits have their equivalent in Octave packages. Packages can be downloaded from the Octave Forge. You can download and install a package from the Forge using the following command in Octave CLI:

octave:1> pkg install -forge <package name>

Basic syntax examples can be found on the Wikipedia page and in all the documentations (see "Useful links" section below). As in MATLAB you can get documentation for any function using the help command as in

octave:2> help plot

Further reading

External links

29 questions
12
votes
7 answers

Error running Octave in Ubuntu 16.04

I just followed the answer in: How to install Octave without GUI in Ubuntu 16.04? to install octave in ubuntu 16.04 and apparently it worked fine. Running octave-cli in terminal apparently works But when I went to run octave clicking on its icon I…
Joao
  • 129
  • 1
  • 1
  • 3
9
votes
4 answers

How to install Octave without GUI in Ubuntu 16.04?

I am really angry. Just installed the new ubuntu and run apt-get install octave. I got tons of crap installed (like Java, some QT libraries, and other pollution). How can I install Octave in Ubuntu 16.04 without the dependency to any GUI stuff? If…
octavianus
  • 129
  • 1
  • 1
  • 2
6
votes
2 answers

Resolve missing package dependencies when trying to install octave

I am trying to install the octave software package on a RHEL 6 Workstation. I have installed the epel-release 6.5 package to enable the EPEL package repository. When I try to install the octave using yum, the following errors are returned: Error:…
Cassie
  • 61
  • 1
  • 1
  • 2
3
votes
1 answer

How to install octave 4.2.0 on my machine?

How can I install Octave 4.2.0 or latest? I have tried: Installing latest version of GNU Octave when I have already installed other version: does not give flathub command not found Installing Octave 4.2.0 from source on ubuntu?: does not…
Kong
  • 142
  • 7
3
votes
1 answer

Run GNU Octave script on multiple cores

I am computing Monte-Carlo simulations using GNU Octave 4.0.0 on my 4-core PC. The simulation takes almost 4 hours to compute the script for 50,000 times (specific to my problem), which is a lot of time spent for computation. I was wondering if…
North
  • 31
  • 1
  • 5
3
votes
2 answers

Compiling Octave 4 with OpenGL .. X11 configure script linking error

I want compile Octave 4 with OpenGL/GUI support but don't know which packages to install on RHEL/CentOS system. I only get warning: configure: WARNING: OpenGL libs (GL and GLU) not found -- disabling GUI configure: WARNING: configure: WARNING: I…
PlanasB
  • 1,625
  • 2
  • 11
  • 9
3
votes
1 answer

Octave package installation: "couldn't create installation directory"

I am trying to install the statistics package (1.0.10) for Octave (3.2.4), which requires the miscellaneous package. When installing the miscellaneous package (1.0.11) I receive the following error: couldn't create installation…
2
votes
1 answer

pkg install -forge general bash: pkg: command not found

I'm running Debian stretch and want to be able to run my MATLAB code, using the GNU Octave packages. I type this into terminal pkg install -forge general and it gives me this error bash: pkg: command not found Any ideas? I've attempted to install…
user1153070
  • 23
  • 1
  • 1
  • 4
2
votes
2 answers

GNU Octave compilation fails with libinterp/.libs/liboctinterp.so: undefined reference to `Magick::*

Context My uname -rv is 4.4.0-64-generic #85~14.04.1-Ubuntu SMP Mon Feb 20 12:10:54 UTC 2017 --- My compiler is GNU gcc 6.3.0 --- I am compiling GNU Octave from source. I have been trying to compile the Octave versions 4.0.2, 4.2.0 and 4.2.1 I…
XavierStuvw
  • 1,089
  • 6
  • 17
  • 40
1
vote
3 answers

GNU Octave: `sh: vim: command not found`

I am running GNU Octave from flatpak and I have an issue with the edit command. In Octave's CLI when I run edit file.m I got the following issue: sh: vim: command not found I have the following set in my octaverc configuration file (from GNU…
user412649
1
vote
0 answers

Use sed to fix weird symbols on tex file generated by publish function from miscellaneous Octave package

I have an Octave code that among other things outputs: (x - 5)⋅(x - 4)⋅(x - 3)⋅(x - 2) ─────────────────────────────── 24 When using publish function from Octave miscellaneous package, the corresponding latex code look like…
kurokirasama
  • 293
  • 1
  • 4
  • 15
1
vote
1 answer

Not able to update octave

As per Wiki page of GNU software octave latest version is 4.2.1 (Released in february 2017). I am using fedora 25 and the octave in my system is version 4.0.3 . I tried upgrading it to the latest version by using both dnf upgrade octave and dnf…
srk_cb
  • 129
  • 1
  • 6
1
vote
2 answers

Function System() using Octave

I have done a shortcut to open LTSpice simulator on terminal, to open the program typing "ltspice", I used the alias command and the path of the program and saved to bashrc. It's working pretty good on terminal, but when I try to use the command on…
Luan R
  • 111
  • 1
1
vote
0 answers

Octave GUI doesn't launch on Ubuntu 16.04

I have installed Octave using the following commands: sudo apt-add-repository ppa:octave/stable sudo apt-get update sudo apt-get install octave Typing octave --no-gui in the shell launches Octave command line. However, if I try opening octave GUI…
user1767774
  • 111
  • 2
1
vote
0 answers

Compiling Octave: how to add a new item to the include directories for Qt?

Situation My distro is Ubuntu 14.04. I am installing Octave 4.2.1. I have a shell script doing this for me using GNU make. Octave is in search of Qt libraries. I wish to use the Qt5 5.8 binaries installed from https://www.qt.io/download-open-source/…
XavierStuvw
  • 1,089
  • 6
  • 17
  • 40
1
2