Use Python within MATLAB environment (2019a)
pyenv was introduced in R2019b. In R2019a and older, you need to use the older pyversion function.
I have 2019a version of MATLAB and I am trying to explore the usage of Python from within MATLAB environment. I have Anaconda 3 installed for Python. In MATLAB, when I issue, pyenv, I get 'Undefined function or variable 'pyenv''
The documentation says that Python is supported, but I am not sure why this doesn't work. Any suggestions?
Edit:
Thanks. Solution is to use pyversion, but also set the path with the entire path
pyversion 'C:\Users\newuser\AppData\Local\Continuum\anaconda3\python.exe';