Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Communication between Python and Matlab

Tags:

python

matlab

ipc

I have some computer vision system that works in Matlab. When it detects something I want to tell Python that it found it. Just yes or no without any additional information, but the system works in infinite loop, so I want Python constantly track Matlab somehow.

I wonder what is the easiest way to do this.

For example, Matlab can create a file on a desktop that Python will see and trigger according functionality.

like image 609
Sergey Ivanov Avatar asked Aug 26 '13 01:08

Sergey Ivanov


1 Answers

If you need constant and fast communication I'd suggest you make your Python application listen on a specific port and connect to that port from MATLAB. You can then exchange information in both directions.

like image 92
Florian Brucker Avatar answered Sep 30 '22 09:09

Florian Brucker