MATLAB: What this error means …and what i shd do to sort it out???

code for webcam

?? Undefined function or method 'videoinput' for input arguments of type 'char'.
Error in ==> webcam at 12 vid = videoinput('Video0004.avi', 1, 'RGB24_640x480');

Best Answer

It looks like you don't have videoinput function in your installation. You need to have Image Acquisition Toolbox to have that function. You can do
>> ver
to verify what you have.
Related Question