Top 1,000 Features Creators Events Podcasts Extensions Blog Explorer CSV Download

GNU Octave

< >

GNU Octave is an open source programming language created in 1988 by John W. Eaton.

#197on PLDB 36Years Old

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

View source

- Build the next great programming language · About · Resources · Acknowledgements · Part of the World Wide Scroll