I am trying to capture a frame from webcam,for hat i used the coding belowa = imaqhwinfo;[camera_name, camera_id, format] = getCameraInfo(a);vid = videoinput(camera_name, camera_id, format);% Set the properties of the video object
set(vid, 'FramesPerTrigger', Inf);set(vid, 'ReturnedColorspace', 'rgb')function [camera_name, camera_id, resolution] = getCameraInfo(a)camera_name = char(a.InstalledAdaptors(end));camera_info = imaqhwinfo(camera_name);camera_id = camera_info.DeviceInfo.DeviceID(end);resolution = char(camera_info.DeviceInfo.SupportedFormats(end));i get the below error ??? Undefined function or method 'getCameraInfo' for input arguments of type'struct'please tell how to rectify it
MATLAB: Undefined function or method ‘getCameraInfo’
camerainfo
Best Answer