Installing MATLAB engine¶
First, to be able to call MATLAB from python, one needs to install the matlab engine. One can read about the MATLAB-python integration at Mathworks's documentation page.
Aside¶
The
provided with MATLAB (2017b) does not find the proper location for installing the proper files if you are using Anaconda instead of MATLAB. However, since the setup file just finds python location and places a folder there, patching it to work with Anaconda is simple.
1. Find the location of the matlab module folder by looking at the output from running
2. Copy the folder and place it into anaconda3/lib/python3.x/site-packages
This should be enough to get matlab engine to function properly with Anaconda.