Categories &

Functions List

Function Reference: h5readatt

Function File: att_val= h5readatt (filename, location, attr)

Read a HDF5 attribute.

Retrieves the value of the specified attribute named attr from the specified location location in the HDF5 file filename.

Input arguments:

filename

Filename of an existing HDF5 file, specified as a string

location

The path to an existing node in the HDF5 file, which can be either a Group, a Dataset or a Named DataType. The root group, "/", is also valid.

attr

Name of attribute, specified as a string scalar.

att_val

Value of the attribute read from the file.

See also: h5writeatt

Source Code: h5readatt