GNU Octave is an open source programming language created in 1988 by John W. Eaton.
#229on PLDB | 36Years Old |
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...
disp("Hello, world!")
printf("Hello World");
#Hello World in Octave (http://www.octave.org/)
printf("Hello World\n");
% 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 ]);
Feature | Supported | Example | Token |
---|---|---|---|
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 |