Chapter 1 of ‘The MATLAB Guide’ converted to IPython notebook

May 16th, 2014 | Categories: math software, matlab, programming, python | Tags:

One of my favourite MATLAB books is The MATLAB Guide by Desmond and Nicholas Higham. The first chapter, called ‘A Brief Tutorial’ shows how various mathematical problems can be easily explored with MATLAB; things like continued fractions, random fibonacci sequences, fractals and collatz iterations.

Over at the SIAM blog, Don MacMillen, demonstrates how its now possible, trivial even, to rewrite the entire chapter as an IPython notebook with all MATLAB code replaced with Python.

The notebook is available as a gist and can be viewed statically on nbviewer.

What other examples of successful MATLAB->Python conversions have you found?

MATLAB guide in IPython

  1. May 16th, 2014 at 15:57
    Reply | Quote | #1

    I found very helpful the information from SciPy ( as well as the very recent Matrix Cheatsheet written by Sebastian Raschka (

    This IPython Notebook is great!

  2. Praveen. C
    May 16th, 2014 at 22:44
    Reply | Quote | #2

    I started rewriting the codes in Trefethen’s Spectral Methods in Matlab here

    Its very incomplete buts thats just because I have not had time to work on it.

  3. Don MacMillen
    May 28th, 2014 at 17:03
    Reply | Quote | #3

    I also translated Prof. Nicholas Higham’s ‘Test matrix toolbox’ to Python / Numpy a number of years ago. It can be found in pypi as the “rogues” package. It is also available on github as

Comments are closed.