HDF5 Conversion

Hi All
HOw to convert structured .mat (matlab) file into HDF5 file with the same hierarchy.
Is there any direct or indirect way of conversion of .mat structured file into HDF5 format.

Hi Sumit!

24.05.2018 9:56, Sumit пишет:

HOw to convert structured .mat (matlab) file into HDF5 file with the
same hierarchy.
Is there any direct or indirect way of conversion of .mat structured
file into HDF5 format.

According to
https://www.mathworks.com/help/matlab/import_export/mat-file-versions.html
modern MATLAB .mat files are actually HDF5 files, so no conversion is
needed.

Best wishes,
Andrey Paramonov

But I am having some .mat (matlab) files from past data and I need to use them using HDF5 format.So is there any solution for this thing.

I tried to read the .mat file using python but,As it is a structured file so not able to retain the structure of the file in python. I just want to convert .mat to HDF5 preserving its same skeleton/architecture

Hello!ould it be possible for you to open the file in MATLAB, set up a prroperty to dave in HDF5 and save it? Will structure be preserved?

If this doesn’t work, I would suggest to post the question on the Mathworks mailing lists.

Thank you!

Elena

Hi epourmal
Thanks for your help, sure I will check.
But I my aim is to convert .mat to HDF5 without using matlab.
Can I use python or R or any other scripting language for this conversion purpose.

You could use Octave I guess. It supports reading .mat files and can save .hdf5.

Elvis

Hi Sumit,

Matlab does store data in a peculiar way. You need to access data using HDF5
references https://support.hdfgroup.org/HDF5/doc/RM/RM_H5R.html

This stackoverflow question (which is answered) is probably your best starting
point!

Regards,

Pierre