MATLAB simultaneous recording for multiple cameras
<p>I am currently working on video recording with two cameras and I'm trying to figure out how to start and stop the recording for two cameras at the same time.</p>

<p>I'm using the <code>getsnapshot</code> and a <code>VideoWriter</code> to get the frames and to store the video file. However, with a for loop they always have a delay between each other, and it compromises the frame rate of the cameras as well.</p>

<p>I tried using <code>parfor</code> but it never writes to the video file and seems to have some internal problem. I also tried the <code>DiskLogger</code>, but only one video would write properly to the file and the other basically contains nothing.</p>

<p>I would really appreciate any suggestions or short example code to explain how parallel computing would work for running multiple cameras!</p>

<p>P.S. I am using imaging source Dmm 42BUC03-ML cameras in case the information would be helpful. It is an OEM camera.</p>