MatlabWrapper

Source

Classification

Summary

MatlabWrapper Andrej Karpathy 27 August 2012 This C++ library is a convenience wrapper around Matlab Engine, especially if you use Eigen matrix library for working with matrices. It should be quite easy to adapt it to other library types as well. Usage Consider the simplest example: You have an lying around and you’d love to run k-means on its rows. But naturally, you don’t feel like re-implementing k-means for Eigen matrices from scratch! So you write: That felt good. Now supose you’ve computing something complicated and would really like to explore it a bit interactively— do a few plots, run some statistics, e…

What This Teaches

  • How a complex idea can be compressed into a minimal but working implementation.
  • Useful as a reference style for serious small systems rather than decorative demos.

Why It Matters

This matters as part of Karpathy’s broader pattern: compress hard technical systems into readable, inspectable, working artifacts.

Repository Snapshot

  • Full name: karpathy/MatlabWrapper
  • Default branch: master
  • HEAD: 7cb103407da4b61b381a9be749531c21a581dd3d
  • Stars at crawl: 87
  • Forks at crawl: 19
  • File count: 5
  • README path: Readme.md
  • License path: “
  • Created: 2012-08-27T08:32:35Z
  • Updated: 2026-04-21T08:41:09Z
  • Pushed: 2012-08-27T08:36:58Z

Top-Level Structure

  • [root]: 2
  • include: 1
  • src: 1
  • test: 1

File Extension Profile

  • .cpp: 2
  • .h: 1
  • .md: 1
  • .txt: 1

Tags / Release-Like Markers

  • No git tags found in the shallow local clone.

Sample File Tree

  • CMakeLists.txt
  • include/MatlabWrapper/MatlabWrapper.h
  • Readme.md
  • src/MatlabWrapper.cpp
  • test/test1.cpp

Public Handling Notes

  • EXTRACTED: This page records public metadata and a source-grounded summary.
  • INFERRED: Full local preservation, when available, is for private/local use unless a license or explicit source policy makes public redistribution safe.
  • Do not treat this page as permission to republish unlicensed source text or code wholesale.