I installed the official MATLAB Engine, following the instructions from the answer on Anaconda, to install the Matlab Engine on Linux in the Anaconda virtual environment with Python3.5. Now I can import matlab and matlab.engine without errors. However, when I try: matlab.engine.start_matlab() , I get a "Segmentation error (dropping the kernel)"
I tried to set LD_LIBRARY_PATH from conda (in case this is even relevant): export LD_LIBRARY_PATH=/System/Library/Frameworks/Python.framework/Versions/Current/lib:$LD_LIBRARY_PATH , but to no avail. The path does not exist, as far as I know, so I also tried export DYLD_LIBRARY_PATH=path_to_anaconda3/envs/myEnv/lib:$LD_LIBRARY_PATH
So, how can I run the Matlab script / call the Matlab scripts from Python from the Anaconda virtual environment?
I'm on Ubuntu by the way
source share