Running an external command takes is taking very long on Windows

2 次查看(过去 30 天)
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 个)

类别

Help CenterFile Exchange 中查找有关 Call Python from MATLAB 的更多信息

标签

产品


版本

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by