Reading HDF Data
Description
Reads a dataset or attribute from the specified file. The argument file is a character row vector that specifies a valid HDF5 file. The argument object parent is a character row vector specifying a valid
group or dataset in file file. The argument object name is a character row vector specifying the name of the dataset or attribute to read. If object name is a dataset, object parent must be a valid
group, otherwise object parent may be either a group or dataset.
O-Matrix supports reading, writing, and creating HDF5 files. See the NCSA HDF 5 site for more information about HDF5, and a description of this file format.
Example
If you have an HDF5 file test.h5 that contains a dataset "vector", which is a three-element dataset that contains the value 1, and you enter
h5read("test.h5", "/", "vector") O-Matrix will respond { 1 1 1 }
If the dataset "vector", contains a character attribute, "description", whose value is "My Data", and you enter
h5read("test.h5","/vector","description") O-Matrix will respond My Data
Back to O-Matrix Data Access and Manipulation Page.
|