How do I run parallel programs in Matlab?
조회 수: 1 (최근 30일)
이전 댓글 표시
Hi I wish to run two loops independently. Specifically, one loop will be playing a sound at random intervals while another loop will be constantly looking for a voltage source from a button click. Is it possible to run two programs simultaneously?
Thanks.
댓글 수: 0
답변 (2개)
E K
2012년 7월 31일
i can not understand why you saw them as two different programs from your explanation it looks like you can run it as one but;
might help.
Jan
2012년 7월 31일
You can start the sound from a TIMER, which modifies its interval in the callback. But looking for a button click is usually not done in a loop, but by the callback mechanism of the button. Clicking on the button triggers the event, not looking for the status of the button in an endless loop.
참고 항목
카테고리
Help Center 및 File Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!