How to run two functions in parallel?
조회 수: 30 (최근 30일)
이전 댓글 표시
I am trying to build an audioplayer application. Here I need two functions, counter and audiorecorder. Instead of executing them individually I am want them to execute simultaneously. How can I do that?
댓글 수: 0
답변 (1개)
Bharat Chandra Mukkavalli
2022년 7월 11일
Hi,
You can use mutithreading to run multiple functions in parallel.
Refer to this link here on running MATLAB functions in a thread based environment: https://in.mathworks.com/help/matlab/matlab_prog/run-functions-on-threads.html#:~:text=Hundreds%20of%20functions%20in%20MATLAB,background%2C%20use%20parfeval%20and%20backgroundPool%20.
Hope this helps!
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Audio and Video Data에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!