Answered

How I can run a simulink model from Python script?

You may consider MATLAB Engine API for Python: <http://www.mathworks.com/help/matlab/matlab-engine-for-python.html> For ex...

How I can run a simulink model from Python script?

You may consider MATLAB Engine API for Python: <http://www.mathworks.com/help/matlab/matlab-engine-for-python.html> For ex...

3 years ago | 2

| accepted

Answered

Calling mex Function from Python extension

How do you want to invoke this MEX file? From inside MATLAB or in Python? You can use mxArray in Python without using MEX. Or...

Calling mex Function from Python extension

How do you want to invoke this MEX file? From inside MATLAB or in Python? You can use mxArray in Python without using MEX. Or...

3 years ago | 0

Answered

Error installing Python on Matlab

You are supposed to run the command from the system prompt, not MATLAB command window: "To install the engine API, execute th...

Error installing Python on Matlab

You are supposed to run the command from the system prompt, not MATLAB command window: "To install the engine API, execute th...

3 years ago | 0

| accepted

Answered

how to run python api from php

What is the error message? Which platform? Does it work outside of PHP? If it works outside of PHP, the issue can be relate...

how to run python api from php

What is the error message? Which platform? Does it work outside of PHP? If it works outside of PHP, the issue can be relate...

3 years ago | 0

Answered

Fail connecting matlab to python using 'matlab_wrapper' python package

You may consider MATLAB Engine API for Python which was introduced in R2014b: <http://www.mathworks.com/help/matlab/matlab-en...

Fail connecting matlab to python using 'matlab_wrapper' python package

You may consider MATLAB Engine API for Python which was introduced in R2014b: <http://www.mathworks.com/help/matlab/matlab-en...

4 years ago | 1

Answered

when I run a python module which imports ssl.py , error occurs . but it's ok to run the straight python.

Did you call "import matlab.engine" before "import ssl"? What happens if you call "import ssl" before "import matlab.engine"? ...

when I run a python module which imports ssl.py , error occurs . but it's ok to run the straight python.

Did you call "import matlab.engine" before "import ssl"? What happens if you call "import ssl" before "import matlab.engine"? ...

4 years ago | 0

Answered

Importing matlab engine in Python, error: EnvironmentError: The installation of MATLAB Engine for Python is corrupted. Please reinstall it or contact MathWorks Technical Support for assistance.

What is the version of Python? Python Engine from MATLAB R2015a works with CPython 2.7.12 from python.org on Mac OSX 10.11.

Importing matlab engine in Python, error: EnvironmentError: The installation of MATLAB Engine for Python is corrupted. Please reinstall it or contact MathWorks Technical Support for assistance.

What is the version of Python? Python Engine from MATLAB R2015a works with CPython 2.7.12 from python.org on Mac OSX 10.11.

4 years ago | 1

| accepted

Answered

Corrupted version of Matlab Engine for python on MacOSX 10.11

What the version of Python? Python Engine from MATLAB R2015a works with CPython 2.7.12 from python.org on Mac OSX 10.11.

Corrupted version of Matlab Engine for python on MacOSX 10.11

What the version of Python? Python Engine from MATLAB R2015a works with CPython 2.7.12 from python.org on Mac OSX 10.11.

4 years ago | 0

Answered

Importing matlab engine in Python, error: EnvironmentError: The installation of MATLAB Engine for Python is corrupted. Please reinstall it or contact MathWorks Technical Support for assistance.

Would you try MATLAB R2016a?

Importing matlab engine in Python, error: EnvironmentError: The installation of MATLAB Engine for Python is corrupted. Please reinstall it or contact MathWorks Technical Support for assistance.

Would you try MATLAB R2016a?

4 years ago | 0

Answered

How to call python3 in MATLAB?

What is the output when you run "python3 --version"? There should be both major number and minor number like Python 3.2.*, Pyth...

How to call python3 in MATLAB?

What is the output when you run "python3 --version"? There should be both major number and minor number like Python 3.2.*, Pyth...

4 years ago | 0

Answered

ImportError: No module named matlab.engine

Anaconda may not work as MATLAB Engine API for Python supports CPython only: <http://www.mathworks.com/help/matlab/matlab-eng...

ImportError: No module named matlab.engine

Anaconda may not work as MATLAB Engine API for Python supports CPython only: <http://www.mathworks.com/help/matlab/matlab-eng...

4 years ago | 0

Answered

How to send Python list as a column vector in Matlab?

Try MATLAB arrays for Python: >>> testList=[0.5, 0.55, 0.6] >>> testVector=matlab.double(testList) >>> testColumnV...

How to send Python list as a column vector in Matlab?

Try MATLAB arrays for Python: >>> testList=[0.5, 0.55, 0.6] >>> testVector=matlab.double(testList) >>> testColumnV...

4 years ago | 0

| accepted

Answered

Error importing matlab.engine into Python on windows

It looks like that there is a conflict between libraries used by MATLAB and libraries located in your system. You may run Pytho...

Error importing matlab.engine into Python on windows

It looks like that there is a conflict between libraries used by MATLAB and libraries located in your system. You may run Pytho...

4 years ago | 0

Answered

Corrupted version of Matlab Engine for python on MacOSX 10.11

The error message "Library not loaded: @rpath/libpython2.7.dylib" means that the Python library is not found or it is incompatib...

Corrupted version of Matlab Engine for python on MacOSX 10.11

The error message "Library not loaded: @rpath/libpython2.7.dylib" means that the Python library is not found or it is incompatib...

4 years ago | 0

Answered

How to solve error during Python Matlab integration using pymatlab?

In case you are not aware of, Python Engine APIs can be used to call MATLAB functions from Python since R2014b: <http://www.m...

How to solve error during Python Matlab integration using pymatlab?

In case you are not aware of, Python Engine APIs can be used to call MATLAB functions from Python since R2014b: <http://www.m...

4 years ago | 0

Answered

Running a matlab function with python

Not sure what exact MATLAB function you are calling from Python, but it looks like that you are passing a Python integer to MATL...

Running a matlab function with python

Not sure what exact MATLAB function you are calling from Python, but it looks like that you are passing a Python integer to MATL...

4 years ago | 0

| accepted

Answered

Running a python script in matlab

Why not using Python Interface? <http://www.mathworks.com/help/matlab/getting-started_buik_wp-3.html> The MATLAB statement...

Running a python script in matlab

Why not using Python Interface? <http://www.mathworks.com/help/matlab/getting-started_buik_wp-3.html> The MATLAB statement...

4 years ago | 2

Answered

Hello, i want to call Matlab-Functions from Python. How can i choose between different Matlab-Versions? Maybe i want to launch Matlab 2013 64-Bit or Matlab 2015 64-bit.

This feature is not available in Python Engine. Currently Python Engine only works with the MATLAB version that it is shipped w...

Hello, i want to call Matlab-Functions from Python. How can i choose between different Matlab-Versions? Maybe i want to launch Matlab 2013 64-Bit or Matlab 2015 64-bit.

This feature is not available in Python Engine. Currently Python Engine only works with the MATLAB version that it is shipped w...

4 years ago | 1

| accepted

Answered

import matlab.engine fails with linux and a non-standard installation directory

Does your Python version support wide-Unicode? >>> import sys >>> if sys.maxunicode > 65535: ... print 'wide-unic...

import matlab.engine fails with linux and a non-standard installation directory

Does your Python version support wide-Unicode? >>> import sys >>> if sys.maxunicode > 65535: ... print 'wide-unic...

4 years ago | 1

| accepted

Answered

MATLAB code to python conversion

You may consider calling the MATLAB function directly from Python instead of converting it: <http://www.mathworks.com/help/ma...

MATLAB code to python conversion

You may consider calling the MATLAB function directly from Python instead of converting it: <http://www.mathworks.com/help/ma...

4 years ago | 1

Answered

Why can't I run compiled Matlab from Python?

Not sure why this could happen. You may add the location of MCR to the system PATH environment variable using os.environ['PATH'...

Why can't I run compiled Matlab from Python?

Not sure why this could happen. You may add the location of MCR to the system PATH environment variable using os.environ['PATH'...

4 years ago | 0

Answered

Controlling a Graseby 3400 syring driver using python code in Matlab

Not sure your exact expected workflow. Assume you have MATLAB code to control the driver, you can use Python Engine to call MAT...

Controlling a Graseby 3400 syring driver using python code in Matlab

Not sure your exact expected workflow. Assume you have MATLAB code to control the driver, you can use Python Engine to call MAT...

4 years ago | 0

Answered

How to wait for matlab called from C++ code to finish and resume project afterwards?

There are MATLAB Engine APIs for C which should work in C++ environment: <http://www.mathworks.com/help/matlab/calling-matlab...

How to wait for matlab called from C++ code to finish and resume project afterwards?

There are MATLAB Engine APIs for C which should work in C++ environment: <http://www.mathworks.com/help/matlab/calling-matlab...

4 years ago | 0

Answered

Matlab Engine for Python error (Linux)

matlab.engine.find_matlab is introduced in R2015b. Please see the end of this document: <http://www.mathworks.com/help/matla...

Matlab Engine for Python error (Linux)

matlab.engine.find_matlab is introduced in R2015b. Please see the end of this document: <http://www.mathworks.com/help/matla...

4 years ago | 0

Answered

How do I run Matlab from Python, but save figures to a file?

There is no such flag. Python Engine allows you to have full control over MATLAB from Python. You can simply save a figure like...

How do I run Matlab from Python, but save figures to a file?

There is no such flag. Python Engine allows you to have full control over MATLAB from Python. You can simply save a figure like...

4 years ago | 0

Answered

can i determine whether a matlab engine is already running

What do you mean by "eng.shareEngine runs but does not seems to create a shared engine"? Typically, you would launch a MATLAB...

can i determine whether a matlab engine is already running

What do you mean by "eng.shareEngine runs but does not seems to create a shared engine"? Typically, you would launch a MATLAB...

4 years ago | 0

Answered

How can I get a simulink model to execute in real-time?

Regarding the communication from Python to MATLAB, you may consider Python Engine: http://www.mathworks.com/help/matlab/matla...

How can I get a simulink model to execute in real-time?

Regarding the communication from Python to MATLAB, you may consider Python Engine: http://www.mathworks.com/help/matlab/matla...

4 years ago | 0

Answered

Error importing matlab.engine into Python

This error message means that the "libpython3.4m.dylib" is not found or not compatible: "ImportError: dlopen(/Applications/M...

Error importing matlab.engine into Python

This error message means that the "libpython3.4m.dylib" is not found or not compatible: "ImportError: dlopen(/Applications/M...

5 years ago | 0

| accepted

Answered

Why am I getting 'MatlabExecutionError: Too many output arguments.' when using the Matlab engine in Python?

Try this: >>>m1.testfunc(nargout=0) By default, the nargout is set to 1 in Python Engine: <http://www.mathworks.com/h...

Why am I getting 'MatlabExecutionError: Too many output arguments.' when using the Matlab engine in Python?

Try this: >>>m1.testfunc(nargout=0) By default, the nargout is set to 1 in Python Engine: <http://www.mathworks.com/h...

5 years ago | 0

| accepted

Answered

How to handle multi Matlab return values in Python

There are two things need to be done. 1. Add the folder where Fun_Py.m is located into MATLAB path from MATLAB command window...

How to handle multi Matlab return values in Python

There are two things need to be done. 1. Add the folder where Fun_Py.m is located into MATLAB path from MATLAB command window...

5 years ago | 2

| accepted