matlab load function slower than h5read for v7.3 .mat files

10 visualizaciones (últimos 30 días)
Suresh
Suresh el 1 de Sept. de 2015
Respondida: Suresh el 3 de Sept. de 2015
When files are saved in -v7.3 .mat file which is hdf5 format, the load function works very slow compared to h5read. Are there better optimized load functions for .hdf5 mat files?

Respuestas (2)

Rutuja Shirali
Rutuja Shirali el 3 de Sept. de 2015
Editada: Rutuja Shirali el 3 de Sept. de 2015
Hi Suresh,
Version 7.3 .mat files use a HDF5 storage format which may require some overhead. You can read more about differences between .mat file formats in our documentation:
We can try saving the files in a different .mat file version using the following command:
>>save('mymatfile.mat','-v7');
We can also use the "matfile" function to load or save variables. More information about this function can be found here:
Thanks!
Rutuja

Suresh
Suresh el 3 de Sept. de 2015
Hi Rutuja,
Yes, but my files are bigger than 10 GB. Any ideas? I find h5read works faster than load. Would you know how to read the links that are called /#refs# in the .mat -v7.3 file.
Thanks. Suresh

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by