clear all; win_info = imaqhwinfo('winvideo') vid = videoinput('winvideo',1,'MJPG_640x480') preview(vid);