Continue execution without waiting

55 ビュー (過去 30 日間)
HT 2018 年 5 月 2 日
コメント済み: Simon Blackmore 2020 年 1 月 11 日
I am calling a python file in matlab script using
system(['python' record_time ' ' video_name]);
I don't want matlab execution to wait for python script to run but go to the lext line and keep running the script after this line. I tried using '&' after the call like this:
system(['python &' record_time ' ' video_name]);
but it throws this error :"'10' is not recognized as an internal or external command, operable program or batch file." (record_time value is 10). Is there a way to do this? Thanks in advance.
  3 件のコメント
Simon Blackmore
Simon Blackmore 2020 年 1 月 11 日
Is there an equivalent for system calls to a raspberry pi?
system(picam, 'python /home/ubuntu/pantilt-hat/ &');
Does not seem to work as matlab still says busy until has finished


回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by