Hi Asier,
I understand that you are trying to access netCDF data using an OPeNDAP URL using the "ncdisp" function in MATLAB R2018a while you are able to access the same data using MATLAB R2020a.
The following MATLAB answer handles a similar issue:
The answer suggests that this is a sporadic issue and it is less frequent with newer versions of MATLAB. Therefore, the most suitable workaround in your case will be to use MATLAB R2020a where your colleague was able to access the data. Other suggestion includes to verify the link first on browser to check if it is a valid link.
I hope this helps.