File Exchange

image thumbnail


version (169 KB) by John
Versatile HDF5 Utilities


Updated 01 Sep 2016

View Version History

View License

Command-line utilities for use with HDF5 files. Included are
H5DUMP: dumps metadata to the screen
H5VARGET: reads hdf5 datasets
H5VARPUT: writes data to hdf5 datasets
H5ATTGET: reads hdf5 attributes
H5ATTPUT: writes hdf5 attributes
H5FILECREATE: create hdf5 file
H5DATACREATE: create hdf5 dataset
H5PROPINFO: retrieves property image information

Cite As

John (2021). HDF5TOOLS (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (9)

Majid Mohamod

Please, could you explain the steps of installation, how can I start with this script? I want to extract data from thousand of HDF5 files. HELLLLLLLLLLLLLLLLLP please, I am almost crazy because this file format "HDF5"

Max Rose

Thanks for this useful functions. In the current version writing complex numbers doesn't work. Any idea why? Do you get it fixed? I tested it with your function th5varput().


Curtis Gehman

Basically what I was looking for. The help should indicate what happens when the read or write operations fail. A function to simply get the size and type of a data set would be handy.


Very handy tools.
It took a while to figure out that 'chunk_size' is needed to set 'max_size' for h5datacreate.

I needed to set the fill value, so I added that option.
Also there is a small bug in 'max_size', inf isn't handled correctly.

see and incorporate changes if you want.



Anthony Kendall

Works exactly as it should. This mimics the higher-level MATLAB HDF5 functions in terms of simplicity, but gives access to lower-level functionality. Great!

Mostafa Afgani

Excellent set of tools. I was looking for a straight-forward way to extract partial datasets from a HDF5 file and this was perfect for that.

MATLAB Release Compatibility
Created with R2007b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Inspired: HDF5 Diskmap Class

Community Treasure Hunt

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

Start Hunting!