h5writeatt(filename, location, attname, attvalue)
h5writeatt(filename, location, attname, attvalue, 'TextEncoding', encoding)
| Parameter | Description |
|---|---|
| filename | a string: hdf5 filename. |
| location | a string: full path identifying a group or variable. |
| attname | a string: name of an attribute. |
| attvalue | a value: supported types: double, uint64, uint32, uint16, uint8 single, int64, int32, int16, or int8. |
| encoding | a string: 'system' or 'UTF-8' ('UTF-8' default). |
h5writeatt writes attribute named attname with the value attvalue to the HDF5 file.
h5create([tempdir(), 'myfile.h5'],'/myDataset1',[10 20]);
h5writeatt([tempdir(), 'myfile.h5'],'/','creation_date', '26-Dec-2018 16:55:32')
| Version | Description |
|---|---|
| 1.0.0 | initial version |