Explore an hdf5 file

5 visualizaciones (últimos 30 días)
maxroucool
maxroucool el 4 de Mayo de 2012
Hi all,
I would like to post treat information from a software called PAM-RTM which simulate injection of resin. Output files are erfh5 that is a kind of hdf5.
So I am discovering this file format and especially the structure of these output files. When I used to program in PHP, there was a function called print_r() enabling to explore the structure of an array to know what are the information that it contains. http://php.net/manual/fr/function.print-r.php
I would like to know if there is an equivalent of this function to explore hdf5 files in matlab.
BR,
Max

Respuesta aceptada

John
John el 4 de Mayo de 2012
Go to MATLAB Central and search for HDF5TOOLS. It has a function called H5DUMP that should work on 2009a.
  1 comentario
maxroucool
maxroucool el 5 de Mayo de 2012
Exactly what I was expecting!
Thank you very much!
Max

Iniciar sesión para comentar.

Más respuestas (3)

per isakson
per isakson el 4 de Mayo de 2012
Did you search the Matlab documentation? Yes there is! Try
info = h5info( filespec );
See help on h5info. I have the impression that Matlab supports HDF5 well.

maxroucool
maxroucool el 4 de Mayo de 2012
Hi per isakson,
Thanks for the answer.
I already saw these 3 functions h5info/read/write. But with my previous question I was expecting a recursive function that explores the whole structure of the file.
Of course I could do it by myself, but since I don't really understand the structure of these files, it is not obvious to do it.
BR,

maxroucool
maxroucool el 4 de Mayo de 2012
OK, in fact you were right!
The h5disp() function seems to do what I want, but does not seems to be available on Matlab 2009... http://www.mathworks.fr/help/techdoc/import_export/f5-86568.html#bsxixpv-1

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by