Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Performs numerical computing, linear algebra, signal processing, optimization, and visualization in MATLAB and GNU Octave.
83% 100%+17 ptsof test cases passed
Passed 24 of 24 test cases with the skill, and 20 of 24 without it.
3 of 3 safety checks passed
183 agent runs
5 forksA fork is a copy of this skill that someone made so they could edit it for their own use. The original doesn't change.
MATLAB is a numerical computing environment optimized for matrix operations and scientific computing. GNU Octave is a free, open-source alternative with high compatibility. All code examples use MATLAB syntax that runs on both platforms.
# GNU Octave (free, open-source)
# macOS
brew install octave
# Ubuntu/Debian
sudo apt install octave
# Running scripts
octave script.m # Octave
matlab -nodisplay -nosplash -r "run('script.m'); exit;" # MATLAB
Note: MATLAB requires a commercial license from MathWorks. GNU Octave is free and runs most MATLAB scripts without modification. Key Octave differences: supports # comments, ++/+= operators; some MATLAB toolbox functions unavailable.
% Load data, fit, and plot
x = linspace(0, 2*pi, 100);
y = sin(x) + 0.1 * randn(size(x));
Published skills whose descriptions closely match this one, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.