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
0
votes
1 answer

Octave script - detecting bad images - error running

In the question, Detecting "bad" images from the command line, there is an Octave script to detect bad images. I'm trying to run on Mac OSX with a homebrew Octave installation. #!/usr/bin/octave -qf threshold = 0.25; usage = "Usage is:…
0
votes
1 answer

GNU Octave: fplot exponent problem

I use GNU Octave 4.4.1 (x86_64-pc-linux-gnu on Arch Linux), and I have problem with fplot function. I would like to know why fplot(@(x) 1/(1+25*x.^2),[-1,1]) Have a different result of fplot(@(x) (1+25*x.^2).^-1,[-1,1]) (the latter returns the…