GNU Octave · online compiler

Run GNU Octave online

Run Octave 8 online — MATLAB-compatible numerical computing.

Firecracker microVM live per-test verdicts multi-file compile

GNU Octave is the free MATLAB clone: mostly source-compatible, same matrix-first paradigm, same broadcasting-with-*. Great for numerical work, linear algebra, quick plots (though the sandbox is headless so save-to-file only).

Starter code

What you get in GNU Octave

Clicking "Run now" opens the playground with this exact code and a matching test case pre-loaded — passes on first Run.

gnu octave
GNU Octave 8
n = str2num(strtrim(fgetl(stdin)));
printf("%d\n", n * 2);
stdin →21
expected →42
FAQ

Common questions about GNU Octave on ls-judge

Which Octave?
Octave 8.
MATLAB compatibility?
High — most scripts run unchanged. Toolbox-specific functions vary.
Plots?
Headless — save PNGs and inspect via file download.
Free?
Yes.
Further reading
Also try