Effacer les filtres
Effacer les filtres

Running an external command takes is taking very long on Windows

2 vues (au cours des 30 derniers jours)
Renger van Nieuwkoop
Renger van Nieuwkoop le 5 Sep 2019
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

Réponses (0)

Catégories

En savoir plus sur Introduction to Installation and Licensing dans Help Center et File Exchange

Tags

Produits


Version

R2018b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by