From the archive · November 01, 2014

Matlab notebooks

using iPython notebooks

Thanks to Steven Silvester, most of the Matlab tours are now available as iPython notebooks. This means that:

This requires that you install Python and iPython (I recommend for instance the Anaconda distribution). You also need to install the pymatbridge Python module in order to run Matlab code from the notebook.

The command

%load_ext pymatbridge

will start Matlab in the background, and then you simply need to put the keyword

%%matlab

if you want to add a new cell to the notebook with your own Matlab code.

Explore the current Python collection →