So when you save more and more matlab plotting scripts you starat to lose track of them. You thought you have a script that can generate a plot but just can’t find it.
I decide to use Jupyter notebook to store my plotting scripts as you can see the plots immediately when you open the script. These plots can be saved and stored online as gist
, so I can browse them whereever I want. Let’s see how it goes.
First step is to install Matlab kernel in Jupyter. Here is how
- Install Anaconda
- Have a Matlab installed (>=2014b)
- Install Matlab Python engine
cd "matlabroot\extern\engines\python" python setup.py install
- In Anaconda prompt (run as admin)
- run
pip install metakernel
- run
pip install matlab_kernel
- run
pip install pymatbridge
- run
- Then in Jupyter notebook, you can create new as “Matlab” example