Run two while loops in parallel

I am implementing a surveillance system using MATLAB GUI. The system allows 4 channels to work (i.e 4 IP cameras to work simultaneously).
4 Pushbuttons (Called "Play") and each pushbutton activates a infinite while loop, to stream from each IP camera (Streaming Images). Now to the problem having 4 while loops, i can't get each while loop to work together, what I need is for each independent while loop to work on an independent core (i.e 4 cores) using MATLAB Sessions. Is that possible, and if yes how can it be done, please give me any references or tutorials to read on the subject if possible. Thank you .

回答 (1 件)

Matt J
Matt J 2013 年 6 月 16 日

0 投票

If you have the Parallel Computing toolbox, you could use SPMD.

カテゴリ

ヘルプ センター および File ExchangeInstalling Products についてさらに検索

製品

質問済み:

2013 年 6 月 16 日

Community Treasure Hunt

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

Start Hunting!

Translated by