The issue could be due to a corrupt MATLAB installation.
In order to ensure that other MEX files can be loaded properly in MATLAB, you can try executing the following commands in MATLAB Command Window:
>> h5read('example.h5', '/g1/g1.1/dset1.1.1');
The above commands use MEX files and if they work it means that Visual C++ 2015 Redistributable has been installed properly.
This error can be caused when the Visual C++ Redistributable is missing and hence there is dependency issue.
To identify the missing library dependencies, please download "dependency walker" from the link below:
Install one of the supported version of the compiler (Microsoft Visual C++ only) on the machine which will install the redistributable automatically. Please find the list of supported compilers below:
If you have access to another machine, you could also check if the same NetCDF file can be read on MATLAB on that machine.
If you cannot use dependency walker on your system, we are unable to identify which DLLs are missing. So, we suggest to do a fresh installation of MATLAB and try reading the file again.
Hope it helps.