About the Octave compiler
MATLAB-compatible math. Compiled online. Run Octave code in your browser with no install and no signup — the editor, the input and the output share one screen. Octave is executed by a remote runtime: your code is submitted to it and the output is returned to this page.
Press Run to execute the program, edit it and press Run again, or paste your own code over it. Everything you type stays in the page; the editor caches your work locally so a reload does not lose it.
A Octave example
This is the program the Octave editor opens with — run it as it is, then change it.
disp("GNU Octave Demo")
disp("")
% Matrix operations
A = [1 2 3; 4 5 6; 7 8 9];
disp("Matrix A:");
disp(A);
disp("Transpose:");
disp(A');
disp(["Determinant: " num2str(det(A))]);
disp(["Rank: " num2str(rank(A))]);
% Statistics
data = [92 87 95 88 91 78 82 75 90 96];
disp("Data Statistics:");
disp([" Mean: " num2str(mean(data))]);
disp([" Median: " num2str(median(data))]);
disp([" Std Dev: " num2str(std(data))]);
disp([" Min: " num2str(min(data))]);
disp([" Max: " num2str(max(data))]);
% Vector operations
x = 1:10;
y = x .^ 2;
disp("");
disp("Squares:");
disp([x' y']);
The editor opens with the full program.
More Data & Science compilers
Browse all 109 languages — the same editor runs each of them, in the browser or on a shared runner.