Running an external command takes is taking very long on Windows
2 views (last 30 days)
Show older comments
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 Comments
Answers (0)
See Also
Categories
Find more on Call Python from MATLAB in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!