Accessing a running MATLAB object from Python
Ältere Kommentare anzeigen
I have a MATLAB class that runs some hardware. I use it as an API by other code in order to build small MATLAB applications. I have some users who want some of the functionality available in Python. It's quite a lot of work to redo everything in Python (there is also a GUI) so I'm looking into the possibility of making the API available in Python somehow.
Here is what I'm looking to do: I want to instantiate my class in MATLAB and have the user set everything up. I'm then wondering if it's possible for Python to somehow access this workspace and run methods of the instantiated object. It seem unlclear me, though, if the if matlab.engine can do that. Does anyone know?
If that is not possible, what might be a good alternative? Maybe through TCP IP if I write a suitable server/client system? I've not done that before, though, and don't know where to start.
Any other options?
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Call MATLAB from Python finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!