Chapter 1 of ‘The MATLAB Guide’ converted to IPython notebook
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?
I found very helpful the information from SciPy (http://wiki.scipy.org/NumPy_for_Matlab_Users) as well as the very recent Matrix Cheatsheet written by Sebastian Raschka (http://sebastianraschka.com/Articles/2014_matlab_vs_numpy.html)
This IPython Notebook is great!
I started rewriting the codes in Trefethen’s Spectral Methods in Matlab here
http://praveen.tifrbng.res.in/spectral_python
Its very incomplete buts thats just because I have not had time to work on it.
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 https://github.com/macd/rogues