Languages Features Creators CSV Resources Challenges Add Language
GitHub icon

GNU Octave

GNU Octave - Programming language

< >

GNU Octave is a programming language created in 1988.

#191on PLDB 35Years Old 2.4kUsers
1Books 0Papers

Try now: Riju · TIO

GNU Octave is software featuring a high-level programming language, primarily intended for numerical computations. Octave helps in solving linear and nonlinear problems numerically, and for performing other numerical experiments using a language that is mostly compatible with Matlab. It may also be used as a batch-oriented language. Read more on Wikipedia...


Example from Riju:
disp("Hello, world!")
Example from hello-world:
printf("Hello World");
#Hello World in Octave (http://www.octave.org/) printf("Hello World\n");
Example from Wikipedia:
% create figure and panel on it f = figure; % create a button group gp = uibuttongroup (f, "Position", [ 0 0.5 1 1]) % create a buttons in the group b1 = uicontrol (gp, "style", "radiobutton", "string", "Choice 1", "Position", [ 10 150 100 50 ]); b2 = uicontrol (gp, "style", "radiobutton", "string", "Choice 2", "Position", [ 10 50 100 30 ]); % create a button not in the group b3 = uicontrol (f, "style", "radiobutton","string", "Not in the group","Position", [ 10 50 100 50 ]);

Language features

Feature Supported Token Example
MultiLine Comments ✓
Integers ✓
% \d+
Floats ✓
% (\d+\.\d*|\d*\.\d+)([eEf][+-]?[0-9]+)?
Strings ✓ "
"Hello world"
Print() Debugging ✓ printf
Line Comments ✓ %
% A comment
Comments ✓
Semantic Indentation X

Books about GNU Octave on goodreads

title author year reviews ratings rating
Scientific Computing with MATLAB and Octave Alfio Quarteroni 2003 0 10 4.10
zig.html · octave.html · xpath.html

View source

- Build the next great programming language · Search · Day 213 · About · Blog · Acknowledgements · Traffic · Traffic Today · GitHub · feedback@pldb.com