Description

Read the content of a dataset according to the optional hyperslab selection.

It is possible to make an hyperslab selection on the data.

The arguments start, count, stride and block must have a size equal to the number of dimensions of the data:

start: gives the coordinates in the data where to start the selection.

count: gives the number of selected blocks in each dimension.

stride: gives the shift between two consecutives blocks in each dimension. Take care that the stride must be greater than the corresponding block dimension.

block: gives the block dimensions.

By default stride and block are set to 1 in each dimension.

Examples

x=int8(matrix(1:80,10,8));save(TMPDIR+"/x.sod","x");// SOD files are HDF5 ones// Open the created filea=h5open(TMPDIR+"/x.sod");// Read the data from the dataset 'x'dx=h5read(a,"/x")// Now select a partdx1=h5read(a,"/x",[34],[53])// ...which is equivalent todx(3:(3+5-1),4:(4+3-1))// We have finished so we free all the resourcesh5close(a);