+2 votes
in Programming Languages by (17.1k 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 (8.6k 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