MATLAB Programming
MATLAB Programming MATLAB Programming
7 Working with Scientific Data Formats MATLAB Class Description Data Members Methods h5array Associates a name with an array. Data – Multidimensional array Name –Textstring specifying name of the object arr = hdf5.h5array creates an h5array object. arr = hdf5.h5array(data) creates an h5array object, where data specifies the value of the Data member. data can be numeric, a cell array, or an HDF5 data type. setData(arr, data) sets the value of the Data member, where arr is an h5array object and data can be numeric, a cell array, or an HDF5 data type. setName(arr, name) sets the value of the Name member, where arr is an h5array object and name is a string or cell array. 7-22
Hierarchical Data Format (HDF5) Files MATLAB Class Description Data Members Methods h5compound Associates a name with a structure; you can define the field names in the structure and their values Data – Multidimensional array Name –Textstring specifying name of the object MemberNames –Text strings specifying name of the object C = hdf5.h5compound creates an h5compound object. C = hdf5.h5compound(n1,n2,...) creates an h5compound object, where n1, n2 and so on are text strings that specify field names. The constructor creates a corresponding data field for every member name. addMember(C, mName) creates a new field in the object C. mName specifies the name of the field. setMember(C, mName, mData) sets the value of the Data element associated with the field specified by mName, where C is an h5compound object and mData can be numeric or an HDF5 data type. setMemberNames(C, n1, n2,...) specifies the names of fields in the structure, where C is an h5compound object and n1,n2, and so on are text strings that specify field names. The method creates a corresponding data field for every name specified. setName(C, name) sets the value of the Name member, where C is an h5compound object and name is a string or cell array. 7-23
- Page 534 and 535: 6 Data Import and Export 3 Close th
- 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 586 and 587: 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
7 Working with Scientific Data Formats<br />
<strong>MATLAB</strong><br />
Class Description Data Members Methods<br />
h5array<br />
Associates a name<br />
with an array.<br />
Data –<br />
Multidimensional<br />
array<br />
Name –Textstring<br />
specifying name of<br />
the object<br />
arr = hdf5.h5array creates<br />
an h5array object.<br />
arr = hdf5.h5array(data)<br />
creates an h5array object,<br />
where data specifies the value<br />
of the Data member. data<br />
can be numeric, a cell array,<br />
or an HDF5 data type.<br />
setData(arr, data)<br />
sets the value of the Data member,<br />
where arr is an h5array object and<br />
data can be numeric, a cell array,<br />
or an HDF5 data type.<br />
setName(arr, name)<br />
sets the value of the Name member,<br />
where arr is an h5array object<br />
and name is a string or cell array.<br />
7-22