Video input in GUI with mac

I'm trying to open the camera to take the input video but it displays a white window with a red cross
Here's my code:
% vid=videoinput('macvideo',1); imaqhwinfo(vid);
preview(vid);

Answers (1)

Sudarshan Kolar
Sudarshan Kolar on 24 Apr 2017
Hello DSB,
Disabling the firewall should help you fix the issue.
Sudarshan

Asked:

DSB
on 22 Apr 2017

Answered:

on 24 Apr 2017

Community Treasure Hunt

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

Start Hunting!