Running an external command takes is taking very long on Windows

1 view (last 30 days)
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

Answers (0)

Categories

Find more on Introduction to Installation and Licensing in Help Center and File Exchange

Tags

Products


Release

R2018b

Community Treasure Hunt

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

Start Hunting!