23.06.2015 Views

MATLAB Programming

MATLAB Programming

MATLAB Programming

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Hierarchical Data Format (HDF5) Files<br />

The H5T_IEEE_F32BE class name indicates the data is a 4-byte, big endian,<br />

IEEE floating-point data type. (See the HDF5 specification for more<br />

information about atomic data types.)<br />

Mapping Composite Data Types. A composite data type is an aggregation<br />

of one or more atomic data types. Composite data types include structures,<br />

multidimensional arrays, and variable-length data types (one-dimensional<br />

arrays).<br />

If the data in the data set is stored in one of the HDF5 nonatomic data types<br />

and the data cannot be represented in the workspace using a native <strong>MATLAB</strong><br />

data type,hdf5read uses one of a set of classes <strong>MATLAB</strong> defines to represent<br />

HDF5 data types. The following figure illustrates the hdf5 class and its<br />

subclasses. For more information about a specific class, see the sections that<br />

follow. To learn more about the HDF5 data types in general, see the HDF Web<br />

page at http://www.hdfgroup.org.<br />

hdf5<br />

h5array h5compound h5enum h5string<br />

h5vlen<br />

For example, if an HDF5 file contains a data set made up of an enumerated<br />

data type which cannot be represented in <strong>MATLAB</strong>, hdf5read uses the HDF5<br />

h5enum class to represent the data. An h5enum object has data members<br />

that store the enumerations (text strings), their corresponding values, and<br />

the enumerated data.<br />

You might also need to use these HDF5 data type classes when using the<br />

hdf5write function to write data from the <strong>MATLAB</strong> workspace to an HDF5<br />

file. By default, hdf5write can convert most <strong>MATLAB</strong> data to appropriate<br />

HDF5 data types. However, if this default data type mapping is not suitable,<br />

you can create HDF5 data types directly.<br />

7-19

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!