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 />

toplevel =<br />

Filename: 'C:\matlab\toolbox\matlab\demos\example.h5'<br />

Name: '/'<br />

Groups: [1x2 struct]<br />

Datasets: []<br />

Datatypes: []<br />

Links: []<br />

Attributes: [1x2 struct]<br />

By looking at the Groups and Attributes fields, you can see that the file<br />

contains two groups and two attributes. The Datasets, Datatypes, andLinks<br />

fields are all empty, indicating that the root group does not contain any data<br />

sets,datatypes,orlinks.<br />

The following figure illustrates the organization of the root group in the<br />

sample HDF5 file example.h5.<br />

Organization of the Root Group of the Sample HDF5 File<br />

To explore the contents of the sample HDF5 file further, examine one of the<br />

two structures in the Groups field of the GroupHierarchy structure. Each<br />

structure in this field represents a group contained in the root group. The<br />

following example shows the contents of the second structure in this field.<br />

level2 = toplevel.Groups(2)<br />

level2 =<br />

Filename: 'C:\matlab\toolbox\matlab\demos\example.h5'<br />

Name: '/g2'<br />

7-13

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

Saved successfully!

Ooh no, something went wrong!