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

Related questions