+2 votes
in Programming Languages by (15.2k points)
I installed matlab using pip, but when I try to import matlab.engine, I get error. How can I install matlab.engine so that I can call matlab program from python program?

1 Answer

0 votes
by (6.3k points)

To install matlab.engine on Ubuntu, do the followings:

cd $(dirname $(realpath $(which matlab)))/../extern/engines/python

python setup.py build --build-base=$(mktemp -d) install