MATLAB: Using Matlab with Ubuntu, Anaconda and Python

anacondalinuxpyenvpythonpyversionUbuntu

I'm using Ubuntu 20.04 LTS. I would like to use Matlab with a specific Anaconda environment. I found out that I have to use the functions pyversion or pyenv to set the path to the python executable file. Which file exactly do I have to link? (~/anaconda3/env/py377/bin/???)

Best Answer

To python executable
pyenv('Version', '~/anaconda3/envs/p37/bin/python')
Related Question