フィルターのクリア

Timeout for system function

36 ビュー (過去 30 日間)
Simon
Simon 2016 年 5 月 27 日
回答済み: Walter Roberson 2016 年 5 月 27 日
Hello,
I can execute a Python-Script with the MATLAB function system(commandStr).
I loop a set of data like:
for i=1:100
commandStr = ['python myscript.py ' num2str(i)];
[status, commandOut] = system(commandStr);
...
end
Sometimes, the Python Script can't find a solution. In this case the next "i" never will be calculated. To avoid this, I like to use a timeout option. If there is no solution in x sec, go to the next i.
Thank you for your help.

採用された回答

Walter Roberson
Walter Roberson 2016 年 5 月 27 日

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCall Python from MATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by