I am trying to run Matlab code using Python. I tried to follow the instructions given on this Mathworks page.
When trying to import Matlab though Python, it was ins
pip install matlab
gives you this, which installs a module with
from numpy import *
from pylab import *
inside. I'm quite sure this is not what you wanted...
I guess you tried importing the Matlab Compiler Runtime for Python. This has to be installed with the respective software from Mathworks though, it doesn't come through Python package index / pip. Check out the instrucions on their site.
You need to install the Matlab Engine for Python, and it cannot be installed using pip. Try the instructions listed here. I have listed the instructions briefly below:
matlabroot
command within Matlab to find it.cd "matlabroot\extern\engines\python"
(In Windows)python setup.py install