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 .

Answers (1)

Matt J
Matt J on 16 Jun 2013
If you have the Parallel Computing toolbox, you could use SPMD.

Categories

Products

Asked:

on 16 Jun 2013

Community Treasure Hunt

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

Start Hunting!