Simple Usage Explanation of python matlab Library

  • 2021-09-05 00:34:06
  • OfStack

Most libraries are used for different interfaces, However, the library brought to you in this issue is a bit different. The direction involved is a graphical interface, which is not difficult to use, but there are also some things that need attention, such as installation, which is different from other third-party libraries, and the installation method is different, and the effect after installation needs to be tested, otherwise it is difficult to control it. Ok, the following is a detailed introduction.

matlab library installation:


python setup.py install

Verify successful installation:


matlabengineforpython     R2017a

Syntax:


matlab.plot([],'')

Use code:


import matlab.engine
eng = matlab.engine.start_matlab()
tf = eng.isprime(37)
print(tf) #True

Related articles: