23.06.2015 Views

MATLAB Programming

MATLAB Programming

MATLAB Programming

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Hierarchical Data Format (HDF5) Files<br />

Hierarchical Data Format (HDF5) Files<br />

Hierarchical Data Format, Version 5, (HDF5) is a general-purpose,<br />

machine-independent standard for storing scientific data in files, developed<br />

by the National Center for Supercomputing Applications (NCSA). HDF5 is<br />

used by a wide range of engineering and scientific fields that want a standard<br />

way to store data so that it can be shared. For more information about the<br />

HDF5 file format, read the HDF5 documentation available at the HDF Web<br />

site (http://www.hdfgroup.org).<br />

<strong>MATLAB</strong> provides both high-level and low-level access to HDF5 files. The<br />

high-level access functions make it easy to read a data set from an HDF5<br />

file or write a variable from the <strong>MATLAB</strong> workspace into an HDF5 file.<br />

The <strong>MATLAB</strong> low-level interface provides direct access to the more than<br />

200 functions in the HDF5 library. For more information, see the following<br />

sections.<br />

• “Using the <strong>MATLAB</strong> High-Level HDF5 Functions” on page 7-11<br />

• “Using the <strong>MATLAB</strong> Low-Level HDF5 Functions” on page 7-26<br />

Note For information about working with HDF4 data, which is a completely<br />

separate, incompatible format, see “Hierarchical Data Format (HDF4) Files”<br />

on page 7-35.<br />

Using the <strong>MATLAB</strong> High-Level HDF5 Functions<br />

The <strong>MATLAB</strong> high-level HDF5 functions provide an easy way to import data<br />

or metadata from an HDF5 file, or write data to an HDF5 file. The following<br />

sections provide more detail about using these functions.<br />

• “Determining the Contents of an HDF5 File” on page 7-12<br />

• “Importing Data from an HDF5 File” on page 7-15<br />

• “Exporting Data to HDF5 Files” on page 7-16<br />

• “Mapping HDF5 Data Types to <strong>MATLAB</strong> Data Types” on page 7-18<br />

7-11

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

Saved successfully!

Ooh no, something went wrong!