I found a solution to the problem for my Fire-i camera.
vid = videoinput('fireiimaq',1,'1024X768 Y_MONO 30 FPS'); src = getselectedsource(vid); set(vid,'TriggerRepeat',10);
start(vid) pause(0.05) S = [800,1000,1250]; i = 1; while (vid.FramesAvailable >0) frame(:,:,:,i) = getdata(vid,1); % imshow(frame(:,:,:,i)) % drawnow src.Shutter_Value = S(i); i = i+1; if i>3 i=1; end end stop(vid)
delete(vid)