how to display video input

i'm trying to display real-time video in gui it doesn't display the camera is working but display nothing
Here's my code
handles.output = hObject;
axes(handles.axes1);
vid=videoinput('macvideo',1);
imaqhwinfo(vid);
preview(vid);

Answers (0)

Asked:

DSB
on 20 Apr 2017

Edited:

DSB
on 20 Apr 2017

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!