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.

7 Working with Scientific Data Formats<br />

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

Class Description Data Members Methods<br />

h5enum<br />

Defines an<br />

enumerated type;<br />

you can specify<br />

the enumerations<br />

(text strings) and<br />

the values they<br />

represent<br />

Data –<br />

Multidimensional<br />

array<br />

Name –Textstring<br />

specifying name<br />

of the object<br />

EnumNames –Text<br />

string specifying the<br />

enumerations, that<br />

is, the text strings<br />

that represent values<br />

EnumValues –<br />

values associated<br />

with enumerations<br />

E = hdf5.h5enum<br />

creates an h5enumobject.<br />

E = hdf5.h5enum(eNames,<br />

eVals) creates an h5enum<br />

object, where eNames is a cell<br />

array of strings, and eVals is<br />

vector of integers. eNames and<br />

eVals must have the same<br />

number of elements.<br />

defineEnum(E, eNames,<br />

eVals) defines the set of<br />

enumerations with the integer<br />

values they represent where<br />

eNames is a cell array of<br />

strings, and eVals is vector<br />

of integers. eNames and<br />

eVals must have the same<br />

number of elements.<br />

enumdata = getString(E)<br />

returns a cell array containing the<br />

names of the enumerations, where<br />

E is an h5enum object.<br />

setData(E, eData) sets<br />

the value of the object’s<br />

Data member, where E is<br />

an h5enum object and eData<br />

is a vector of integers.<br />

setEnumNames(E, eNames)<br />

specifies the enumerations, where<br />

E is an h5enum object and eNames<br />

is a cell array of strings.<br />

7-24<br />

setEnumValues(E,<br />

eVals) specifies the value<br />

associated with each<br />

enumeration, where E is an<br />

h5enum object and eVals<br />

is a vector of integers.

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

Saved successfully!

Ooh no, something went wrong!