Is it possible to add a listener to a python object?
Mostrar comentarios más antiguos
I would like for python scripts and objects to be able to trigger a MATLAB callback. Is there any way to do this such as assigning a listener to a python object property or having python raise a MATLAB event or call a MATLAB function?
I've considered using socket communication between python and MATLAB to (essentially) use the java event triggered BytesAvailable function, but that is rather roundabout and requires several different functions and a fair bit of coding.
1 comentario
Benjamin Avants
el 12 de Dic. de 2017
Respuestas (1)
Jayaram Theegala
el 15 de Dic. de 2017
0 votos
You can use MATLAB Engine API for Python. The following documentation has an example that shows how to call a function in MATLAB from Python: https://www.mathworks.com/help/matlab/matlab_external/call-matlab-functions-from-python.html
Categorías
Más información sobre Call MATLAB from Python en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!