Hello, Any solution to run Python files through Matlab simultaneously ?
5 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Rao
el 2 de Oct. de 2016
Comentada: Rao
el 4 de Oct. de 2016
Hello, Any solution to run Python files through Matlab simultaneously ? I have developed neural network algo for my dataset classification in Python using Theano, and other libraries. But i have no time to translate all this in Matlab. I know this is possible, there exist alot of libraries (matconvnet). Help needed to run python files through Matlab. Matlab Engine API or any Solution? Or to run both simultaneously ? (E.g Lets say, Matlab sends data and Python process it and returns back to it Matlab ?) I have written Python code for my Novel Dataset classification and it classify my Data, and i want the result to be imported back in Matlab. Suggestions are appreciated.
0 comentarios
Respuesta aceptada
Roman Müller-Hainbach
el 4 de Oct. de 2016
On Unix-systems I use this approach:
Use the system()-command with something like this: 'python your_python_file.py &'. The '&' at the end makes this command finish immediately while your Python script runs in the background. You can start all your python runs through a loop.
You can then check for the results (which you will probably write into some files) and start processing them when they are present.
Más respuestas (1)
Ver también
Categorías
Más información sobre Call Python from MATLAB en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!