The codes 'loadhdf5.m' and 'matfile2hdf5.m' respectively load data from an HDF5 file into the workspace (works similarly to the 'load' command) and translate a .mat file into a .hdf5 file. The codes are simple in that (1) only datasets under the '/' group in an HDF5 file are loaded, and (2) cell arrays and structures in a .mat file are ignored. These codes are useful when you prefer to generate and analyze data in the matlab environment but the actual processing of the data must be done on a platform where matlab is not available. A set of C-codes is also provided that can be used for I/O from HDF5 files directly to and from vectors and matrices defined in the Gnu Scientific Library. A typical usage scenario is: generate simulation data in matlab, translate to hdf5, port to an HPC and analyze, store out results in hdf5 format, translate from hdf5 to .mat, and analyze results in matlab.
Soumya Mohanty (2021). mohanty-sd/HDF5_MAT_GSL_UTILS (https://github.com/mohanty-sd/HDF5_MAT_GSL_UTILS), GitHub. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!