How can I connect python script and mfile?
Mostrar comentarios más antiguos
Hello, I have a problem with my connection between Python script and matlab.
I need call all from py-script. Open mfile, start run(F5) and save results.
It can be possible? And if yes, how?
Beforehand, I thank you for all the help.
Respuestas (1)
the cyclist
el 10 de Abr. de 2017
0 votos
It is the first link that came up when I googled call matlab from python.
4 comentarios
PeterHouse
el 10 de Abr. de 2017
Editada: PeterHouse
el 10 de Abr. de 2017
@Lubos Helebrant: what exactly does "doing nothing" mean? Do you get any error message (if so, what exactly), or a warning, or do you get incorrect values, or does your computer catch fire? How are we supposed to know what "does nothing" means ?
the cyclist
el 10 de Abr. de 2017
Editada: the cyclist
el 10 de Abr. de 2017
Also, can you successfully run this simple example from the documentation?
import matlab.engine
eng = matlab.engine.start_matlab()
tf = eng.isprime(37)
print(tf)
If you can't get that to work, there is no point to figuring out your (presumably more complicated) actual code.
PeterHouse
el 11 de Abr. de 2017
Editada: PeterHouse
el 11 de Abr. de 2017
Categorías
Más información sobre Call MATLAB from Python en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!