how to run two .m files simultaneously?

i have written two scripts. one to track mouse pointer using kinect V1 and second is the GUI file. now i want to integrate the two files. i don't know how to integrate them.... thanks in advance... :)

답변 (1개)

Walter Roberson
Walter Roberson 2018년 4월 30일

0 개 추천

GUI must run on the main MATLAB thread, never in a worker. Because of that you must use one of the following techniques:
However, do not try to use plain parfor without a parallel queue, or spmd for this purpose: they will take control and you will not be able to manage the GUI until they completed
It is possible that I missed an option or three.
.... But generally speaking, when you are communicating with an external device like that, unless the device is high bandwidth or requires low latency, then typically the better approach is to program access through callbacks, without using any parallel processing.

카테고리

도움말 센터File Exchange에서 Parallel Computing Fundamentals에 대해 자세히 알아보기

질문:

2018년 4월 30일

답변:

2018년 4월 30일

Community Treasure Hunt

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

Start Hunting!

Translated by