How to install pymatlab
HowToubuntu
For a university project i had to deal with a web application written in python and some computations that are matlab based. Of course my webapp was in python so I had to find a library to interact with python. I’ve found pymatlab to be a good library for this goal.
Installing pymatlab was a bit tricky. I had to install matlab on Linux, then install theĀ python-numpy package and then install pymatlab with this sets of commands
sudo -s export LIBRARY_PATH=/usr/local/MATLAB/R2011a/bin/glnxa64/ export PATH=$PATH:/usr/local/MATLAB/R2011a/bin/ export C_INCLUDE_PATH=/usr/local/MATLAB/R2011a/extern/include/ apt-get install csh pip install pymatlab
Then I was able to run matlab inside my python programs.