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

<strong>MATLAB</strong><br />

Class Description Data Members Methods<br />

h5compound<br />

Associates a name<br />

with a structure;<br />

you can define the<br />

field names in the<br />

structure and their<br />

values<br />

Data –<br />

Multidimensional<br />

array<br />

Name –Textstring<br />

specifying name<br />

of the object<br />

MemberNames –Text<br />

strings specifying<br />

name of the object<br />

C = hdf5.h5compound creates<br />

an h5compound object.<br />

C =<br />

hdf5.h5compound(n1,n2,...)<br />

creates an h5compound object,<br />

where n1, n2 and so on are<br />

text strings that specify field<br />

names. The constructor creates<br />

a corresponding data field<br />

for every member name.<br />

addMember(C, mName)<br />

creates a new field in the<br />

object C. mName specifies<br />

the name of the field.<br />

setMember(C, mName,<br />

mData) sets the value of the<br />

Data element associated with<br />

the field specified by mName,<br />

where C is an h5compound object<br />

and mData can be numeric<br />

or an HDF5 data type.<br />

setMemberNames(C, n1,<br />

n2,...) specifies the names of<br />

fields in the structure, where C is<br />

an h5compound object and n1,n2,<br />

and so on are text strings that<br />

specify field names. The method<br />

creates a corresponding data field<br />

for every name specified.<br />

setName(C, name) sets<br />

the value of the Name member,<br />

where C is an h5compound object<br />

and name is a string or cell array.<br />

7-23

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

Saved successfully!

Ooh no, something went wrong!