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

+1 vote
by (56.5k points)
selected by
 
Best answer

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


...