| Contents | Index |
data = h5read(filename,datasetname)
data = h5read(filename,datasetname,start,count)
data = h5read(filename,datasetname,start,count,stride)
data = h5read(filename,datasetname) retrieves all of the data from the HDF5 data set datasetname in the file filename.
data = h5read(filename,datasetname,start,count) reads a subset of data from the data set datasetname. start is the one-based index of the first element to be read. count defines how many elements to read along each dimension. If a particular element of count is Inf, h5read reads data until the end of the corresponding dimension.
data = h5read(filename,datasetname,start,count,stride) reads a subset of data, where stride specifies the interelement spacing along each data set extent.
data |
Data read from the data set. |
Read an entire data set.
h5disp('example.h5','/g4/lat');
data = h5read('example.h5','/g4/lat');
Read the first 5-by-3 subset of a data set.
h5disp('example.h5','/g4/world');
data = h5read('example.h5','/g4/world',[1 1],[5 3]);
Read a data set of references to other data sets.
h5disp('example.h5','/g3/reference');
data = h5read('example.h5','/g3/reference');h5disp | h5readatt | h5write | h5writeatt

Explore how to use MATLAB to make advancements in engineering and science.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |