Octave Online Compiler
GNU Octave exists because MATLAB is expensive. A single MATLAB license costs thousands of dollars, and each toolbox adds more. Octave is a free, open-source alternative that's largely compatible with MATLAB syntax. If you've written MATLAB code in a university course, there's a good chance the same code runs in Octave with little or no modification.
Octave handles the same core tasks: matrix operations, linear algebra, numerical integration, plotting, and signal processing. For students and researchers who need MATLAB-like computing without the license cost, Octave is the practical choice.
Why use an Octave online compiler?
Installing Octave locally takes a few minutes, but if you're on a shared machine, a Chromebook, or just want to check a quick matrix calculation, an online compiler is faster. It's also useful for sharing code with classmates -- send a link instead of asking everyone to install software.
Matrix operations
% Create and manipulate matrices
A = [1 2 3; 4 5 6; 7 8 10];
b = [3; 6; 9];
fprintf('Matrix A:\n');
disp(A);
% Solve linear system Ax = b
x = A \ b;
fprintf('Solution to Ax = b:\n');
disp(x);
% Verify: A * x should equal b
fprintf('Verification (A * x):\n');
disp(A * x);
% Matrix properties
fprintf('Determinant: %.4f\n', det(A));
fprintf('Rank: %d\n', rank(A));
fprintf('Trace: %.4f\n', trace(A));
% Eigenvalues
[V, D] = eig(A);
fprintf('\nEigenvalues:\n');
disp(diag(D));
% Element-wise operations (note the dot)
C = A .* A;
fprintf('Element-wise square of A:\n');
disp(C);
The \ operator solves the linear system -- it's one of the things that makes MATLAB/Octave so convenient for numerical work. In most other languages you'd need to import a library and call a function. Here it's a single character. The . prefix on operators (.*, ./, .^) makes them element-wise instead of matrix operations, which is a distinction that trips up newcomers but becomes second nature quickly.
Octave on OneCompiler
OneCompiler runs GNU Octave code and displays the output. It handles matrix operations, linear algebra, string manipulation, and control structures. If you're working through a numerical methods textbook or verifying homework, it's the fastest path from "I wonder if this formula is right" to an answer.
Try Octave here: Octave Online Compiler on OneCompiler