I am trying to capture image from a webcam. The image snapshot has to be taken after a mouse click. I want to have a click button on preview screen. Can anyone help me do this? Below part is my code to capture image from webcam.
cam1 = webcam('FaceTime');
img = snapshot(cam1);