Machine Learning in MatLab/Octave

This repository explains popular machine learning algorithms with MATLAB and Octave code examples and mathematics.

github.com/trekhleb/machine-learning-octave
Machine Learning in MatLab/Octave homepage screenshot

About Machine Learning in MatLab/Octave

This repository provides MATLAB and Octave *.m scripts that demonstrate machine learning algorithms with explanations of the mathematics behind them. Examples include linear regression for house price prediction, logistic regression, k-means clustering, Gaussian anomaly detection, and a multilayer perceptron for handwritten digits recognition.

The implementations avoid third-party libraries and one-liners to focus on the underlying mathematics. Running the demos requires Octave or MATLAB installed locally, or the web version of MATLAB.

Key features

  • Linear regression example for house prices prediction
  • Logistic regression for microchip fitness and digits recognition
  • K-means clustering example splitting data into three clusters
  • Anomaly detection using Gaussian distribution for overloaded server
  • Multilayer perceptron neural network for handwritten digits recognition
  • Demo scripts run from Octave console per topic folder
Best for: Learners who want to study machine learning mathematics through MATLAB or Octave code.
Good for
  • Code examples include explanations of the mathematics behind each algorithm
  • Covers regression, classification, clustering, anomaly detection and neural networks
  • Open source repository with runnable demo scripts
Watch out for
  • Requires Octave or MATLAB to be installed to launch demos

Machine Learning in MatLab/Octave at a glance

Type
Open-source project
Pricing
Not confirmed. Check the site
Open source
Yes · Source code
Language
English
Last checked
Oct 5, 2026 · Online when checked
Listed
Oct 5, 2026

Machine Learning in MatLab/Octave alternatives

Tools and sites you could use instead, ranked by how closely they match.

All 24 alternatives

Popular in Mathematics Learning

Well-known listings from the same topic.

All 31

Machine Learning in MatLab/Octave FAQ

What is needed to run the demos?
Octave or MATLAB installed locally, or the web version of MATLAB.
How do I launch a demo?
Move to the topic folder, start Octave, then run the demo script.
Is there a Python version?
Yes, a Python/Jupyter version is available in the homemade-machine-learning project.
Is something wrong or out of date?

Tell us and an editor will check it.

Own this website?

Claim the listing and suggest updates yourself. An editor checks every claim first.

Claim this listing