h5readatt
Read HDF5 attribute.
Syntax
- attval = h5readatt(filename, location, attname)
Input argument
- filename - a string: hdf5 filename.
- location - a string: full path identifying a group or variable.
- attname - a string: name of an attribute.
Output argument
- attval - a nelson's variable.
Description
h5readatt reads attribute named attname from the HDF5 file.
Example
h5create([tempdir(), 'myfile.h5'],'/myDataset1',[10 20]);
h5writeatt([tempdir(), 'myfile.h5'],'/','creation_date', '26-Dec-2018 16:55:32')
h5readatt([tempdir(), 'myfile.h5'],'/','creation_date')
See also
History
Version | Description |
---|---|
1.0.0 | initial version |
Author
Allan CORNET