%% Read Subset of HDF5 Dataset
% Get the metadata for a dataset from the HDF5 file and then read a subset of the dataset.
% Display the metadata for a dataset /g4/world from the HDF5 file example.h5.

h5disp('example.h5','/g4/world')

% Starting from the beginning of data, read a 5-by-3 subset of the data from the dataset.

start = [1 1];
count = [5 3];
data = h5read('example.h5','/g4/world',start,count)

% Copyright 2015 The MathWorks, Inc.