title: Control Snapshot Speed In Matlab
body: <p>This is for my project. i wrote the code using <strong>getdata</strong> command in matlab.i want to take some snapshots form webcam. But those snapshots are very speed.</p>
  
  <p>I want to slow the snapshot frame. This is the code i written,</p>
  
  <pre><code>vid = videoinput('winvideo',3,'RGB24_1600x1200');    
  triggerconfig(vid,'manual');   
  set(vid,'FramesPerTrigger',1);
  set(vid,'TriggerRepeat', Inf);
  start(vid);
  for i=1:2
      trigger(vid);
      im=getdata(vid,1);
      figure,imshow(im);
  end
  imwrite(im,'web.jpg');
  stop(vid);
  </code></pre>