MATLAB Programming
MATLAB Programming MATLAB Programming
7 Working with Scientific Data Formats MATLAB Class Description Data Members Methods h5enum Defines an enumerated type; you can specify the enumerations (text strings) and the values they represent Data – Multidimensional array Name –Textstring specifying name of the object EnumNames –Text string specifying the enumerations, that is, the text strings that represent values EnumValues – values associated with enumerations E = hdf5.h5enum creates an h5enumobject. E = hdf5.h5enum(eNames, eVals) creates an h5enum object, where eNames is a cell array of strings, and eVals is vector of integers. eNames and eVals must have the same number of elements. defineEnum(E, eNames, eVals) defines the set of enumerations with the integer values they represent where eNames is a cell array of strings, and eVals is vector of integers. eNames and eVals must have the same number of elements. enumdata = getString(E) returns a cell array containing the names of the enumerations, where E is an h5enum object. setData(E, eData) sets the value of the object’s Data member, where E is an h5enum object and eData is a vector of integers. setEnumNames(E, eNames) specifies the enumerations, where E is an h5enum object and eNames is a cell array of strings. 7-24 setEnumValues(E, eVals) specifies the value associated with each enumeration, where E is an h5enum object and eVals is a vector of integers.
Hierarchical Data Format (HDF5) Files MATLAB Class Description Data Members Methods h5string Associates a name with a text string and provides optional padding behavior Data – Multidimensional array Name –Textstring specifying name of the object Length – Scalar defining length of string Padding –Type of padding to use: 'spacepad' 'nullterm' 'nullpad' str = hdf5.h5string creates an h5string object. str = hdf5.h5string(data) creates an h5string object, where data is a text string. str = hdf5.h5string(data, padtype) creates an h5stringobject, where data is a text string and padtype specifies the type of padding to use. setData(str, data) sets the value of the object’s Data member, where str is an h5string object anddata is a text string. setLength(str, lenVal) sets the value of the object’s Length member, where str is an h5string object and lenVal is a scalar. setName(str, name) sets the value of the object’s Name member, where str is an h5string object and name is a string or cell array. setPadding(str, padType) specifies the value of the object’s Padding member, where str is an h5string object and padType is a text string specifying one of the supported pad types. h5vlen Associates a name with an array Data – Multidimensional array Name –Textstring V = hdf5.h5vlen creates an h5array object. V = hdf5.h5vlen(data)creates an h5array object, where 7-25
- Page 536 and 537: 6 Data Import and Export type = Mic
- Page 538 and 539: 6 Data Import and Export ndata = xl
- Page 540 and 541: 6 Data Import and Export 41 42 43 4
- Page 542 and 543: 6 Data Import and Export Note While
- Page 544 and 545: 6 Data Import and Export Use these
- Page 546 and 547: 6 Data Import and Export Writing Bi
- Page 548 and 549: 6 Data Import and Export The act of
- Page 550 and 551: 6 Data Import and Export Conversion
- Page 552 and 553: 6 Data Import and Export • Two sp
- Page 554 and 555: 6 Data Import and Export Exchanging
- Page 556 and 557: 6 Data Import and Export urlread('h
- Page 558 and 559: 6 Data Import and Export Once you h
- Page 560 and 561: 6 Data Import and Export For exampl
- Page 562 and 563: 6 Data Import and Export 6-124
- Page 564 and 565: 7 Working with Scientific Data Form
- Page 566 and 567: 7 Working with Scientific Data Form
- Page 568 and 569: 7 Working with Scientific Data Form
- Page 570 and 571: 7 Working with Scientific Data Form
- Page 572 and 573: 7 Working with Scientific Data Form
- Page 574 and 575: 7 Working with Scientific Data Form
- Page 576 and 577: 7 Working with Scientific Data Form
- Page 578 and 579: 7 Working with Scientific Data Form
- Page 580 and 581: 7 Working with Scientific Data Form
- Page 582 and 583: 7 Working with Scientific Data Form
- Page 584 and 585: 7 Working with Scientific Data Form
- Page 588 and 589: 7 Working with Scientific Data Form
- Page 590 and 591: 7 Working with Scientific Data Form
- Page 592 and 593: 7 Working with Scientific Data Form
- Page 594 and 595: 7 Working with Scientific Data Form
- Page 596 and 597: 7 Working with Scientific Data Form
- Page 598 and 599: 7 Working with Scientific Data Form
- Page 600 and 601: 7 Working with Scientific Data Form
- Page 602 and 603: 7 Working with Scientific Data Form
- Page 604 and 605: 7 Working with Scientific Data Form
- Page 606 and 607: 7 Working with Scientific Data Form
- Page 608 and 609: 7 Working with Scientific Data Form
- Page 610 and 611: 7 Working with Scientific Data Form
- Page 612 and 613: 7 Working with Scientific Data Form
- Page 614 and 615: 7 Working with Scientific Data Form
- Page 616 and 617: 7 Working with Scientific Data Form
- Page 618 and 619: 7 Working with Scientific Data Form
- Page 620 and 621: 7 Working with Scientific Data Form
- Page 622 and 623: 7 Working with Scientific Data Form
- Page 624 and 625: 7 Working with Scientific Data Form
- Page 626 and 627: 7 Working with Scientific Data Form
- Page 628 and 629: 7 Working with Scientific Data Form
- Page 630 and 631: 7 Working with Scientific Data Form
- Page 632 and 633: 7 Working with Scientific Data Form
- Page 634 and 635: 7 Working with Scientific Data Form
Hierarchical Data Format (HDF5) Files<br />
<strong>MATLAB</strong><br />
Class Description Data Members Methods<br />
h5string<br />
Associates a name<br />
with a text string<br />
and provides<br />
optional padding<br />
behavior<br />
Data –<br />
Multidimensional<br />
array<br />
Name –Textstring<br />
specifying name<br />
of the object<br />
Length –<br />
Scalar defining<br />
length of string<br />
Padding –Type<br />
of padding to use:<br />
'spacepad'<br />
'nullterm'<br />
'nullpad'<br />
str = hdf5.h5string creates<br />
an h5string object.<br />
str = hdf5.h5string(data)<br />
creates an h5string object, where<br />
data is a text string.<br />
str = hdf5.h5string(data,<br />
padtype) creates an<br />
h5stringobject, where<br />
data is a text string and<br />
padtype specifies the<br />
type of padding to use.<br />
setData(str, data)<br />
sets the value of the object’s<br />
Data member, where str<br />
is an h5string object<br />
anddata is a text string.<br />
setLength(str,<br />
lenVal) sets the value of the<br />
object’s Length member, where<br />
str is an h5string object<br />
and lenVal is a scalar.<br />
setName(str, name)<br />
sets the value of the object’s<br />
Name member, where str is<br />
an h5string object and name<br />
is a string or cell array.<br />
setPadding(str,<br />
padType) specifies the value of the<br />
object’s Padding member, where<br />
str is an h5string object and<br />
padType is a text string specifying<br />
one of the supported pad types.<br />
h5vlen<br />
Associates a name<br />
with an array<br />
Data –<br />
Multidimensional<br />
array<br />
Name –Textstring<br />
V = hdf5.h5vlen creates<br />
an h5array object.<br />
V = hdf5.h5vlen(data)creates<br />
an h5array object, where<br />
7-25