Error when using h5info

조회 수: 21 (최근 30일)
Mahmoud Elzouka
Mahmoud Elzouka 2023년 6월 20일
댓글: Walter Roberson 2023년 6월 20일
Hello,
when I call h5info, I see this error. How can I resolve this?
>> h5info(h5_filepath)
Invalid MEX-file 'C:\Program Files\MATLAB\R2022b\toolbox\matlab\imagesci\private\h5infoc.mexw64': The specified procedure could not be found.
Error in h5info (line 125)
hinfo = h5infoc(filename,location, useUtf8);

답변 (1개)

Animesh
Animesh 2023년 6월 20일
It looks like there is a problem with the h5infoc function, which is called by h5info, as it can't find the specified procedure. Some possible solutions are:
  • Make sure that the HDF5 library is installed on your computer and that MATLAB can find it. You can download the latest version of the library from the HDF Group website and follow the installation instructions. After that, you can try restarting MATLAB to see if it can find the library and load the h5infoc function.
  • Check if there are any conflicts between the HDF5 library used by MATLAB and other HDF5 libraries installed on your computer. If you have multiple versions of the library, they may cause conflicts that prevent MATLAB from loading the correct one. You can try removing the other versions or modifying your system PATH environment variable to prioritize the one used by MATLAB.
  • Try reinstalling MATLAB or updating it to a newer version. If the problem persists after trying the above solutions, it's possible that there is a bug or issue with MATLAB or the HDF5 library that requires a software update or reinstallation.
  댓글 수: 1
Walter Roberson
Walter Roberson 2023년 6월 20일
You should not need to download the HDF5 library. The h5infoc.mexw64 is installed with MATLAB
The error message is (in a very clumsy way) telling you that C:\Program Files\MATLAB\R2022b\toolbox\matlab\imagesci\private\h5infoc.mexw64 exists but it needs a DLL that the operating system cannot find. Finding out which DLL is needed can be a bit of a nuisance but https://www.dependencywalker.com/ can help.
Probably you need to reinstall that portion of MATLAB . But first check your anti-virus logs: your anti-virus might be blocking some DLL.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Data Import from MATLAB에 대해 자세히 알아보기

태그

제품


릴리스

R2022b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by