From: Priyanshu Agarwal on
Hi,

I am trying to interface the SABRENT USB webcam with MATLAB using the Image Acquisition Toolbox. I have been interfacing usb webcams in the past successfully.
However, this time something really wrong is happening that my MATLAB crashes as soon as I run the code. Here is the code.

vid = videoinput('winvideo');
preview(vid)

The device only supports 'YUY2_640x480' format. Is there a way I can preview a webcam with a 'YUY2_640x480' format.

Regards,
Priyanshu