Running an external command takes is taking very long on Windows
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hi
I am running Matlab 18b on Windows 10 and noticed that running a Python script from within MATLAB takes twice as long (10min) compared with running the python script in the normal dos shell (cmd). It looks like it is waiting for something. As soon as the script starts, the time is the same as running it in a Dos shell.
I ran it in MATLAB as follows:
command = 'python create_scenario.py';
status = system(command)
The python script has several calls to a mysql database and an optimization problem.
If I run the same Python script in MATLAB for Linux there is no delay.
It seems that other people had similar problems running other external scripts, but I couldn't find an answer..
Any help would be appreciated.
Cheers
Renger
0 commentaires
Réponses (0)
Voir également
Catégories
En savoir plus sur Call Python from MATLAB dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!