If the camera is built in to your system then you need https://www.mathworks.com/matlabcentral/fileexchange/45183-image-acquisition-toolbox-support-package-for-os-generic-video-interface but if it is a USB webcam then https://www.mathworks.com/help/supportpkg/usbwebcams/index.html?s_tid=CRUX_lftnav
See https://www.mathworks.com/help/imaq/image-acquisition-support-packages-for-hardware-adaptors.html