필터 지우기
필터 지우기

Continue execution without waiting

조회 수: 16 (최근 30일)
HT
HT 2018년 5월 2일
댓글: Simon Blackmore 2020년 1월 11일
I am calling a python file in matlab script using
system(['python runCam-oneFunction.py' 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 runCam-oneFunction.py &' 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
HT
HT 2018년 5월 2일
Thank you @Walter. It worked!
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/pantilt.py &');
Does not seem to work as matlab still says busy until pantilt.py has finished

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Call Python from MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by