How can my Matlab script read streamed data from my Python script

8 visualizaciones (últimos 30 días)
Charles
Charles el 24 de Ag. de 2017
Comentada: Charles el 28 de Ag. de 2017
I have created a script in Python which streams live data to my terminal on my Macbook. I am suing Python 3.6. At this point I must add I am very new to Python. I want to stream the data into Matlab workspace, and allow my Matlab code to read it as an input. How might I do this very simply? Alternative I am thinking I can store the streamed data in a SQL Light data base, and have Matlab read from the database.

Respuestas (1)

Sailesh Sidhwani
Sailesh Sidhwani el 28 de Ag. de 2017
As mentioned in one of the above comments, you can use MATLAB Engine API for Python for your workflow you are trying to achieve. But as of MATLAB R2017a, MATLAB only supports up to Python 3.5. You can find the system requirements to use MATLAB Engine API for Python in the link below: https://www.mathworks.com/help/matlab/matlab_external/system-requirements-for-matlab-engine-for-python.html
If you use Python 3.5 or lower, following links will help you get started:
  1 comentario
Charles
Charles el 28 de Ag. de 2017
Thank you. This is interesting and some wbat confirms next steps. I need to install and earlier version of python as I am running 3.6 :/

Iniciar sesión para comentar.

Categorías

Más información sobre Call Python from MATLAB en Help Center y File Exchange.

Productos

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by