Hi,
Firstly, ensure that you have installed the necessary IP Camera support package in MATLAB. You can check this by running the command ipcamlist in the MATLAB command window. If the IP Camera support package is not installed, you will need to install it before proceeding.
If the support package is installed, the issue could be related to compatibility between the camera model and the IP Camera support package. Not all camera models are guaranteed to work with MATLAB's IP Camera support. It is recommended to check the documentation or contact the camera manufacturer to confirm compatibility with MATLAB.
Refer to the following Matlab answers for more information:
I hope this helps!