Documentation Center

  • Trial Software
  • Product Updates
我们为许可用户提供了部分翻译好的中文文档。您只需登录便可查阅这些文档

H5S.get_select_hyper_blocklist

List of hyperslab blocks

Syntax

blocklist = H5S.get_select_hyper_blocklist(space_id,startblock,numblocks)

Description

blocklist = H5S.get_select_hyper_blocklist(space_id,startblock,numblocks) returns a list of the hyperslab blocks currently selected. space_id is a dataspace identifier. startblock specifies the block to start with and numblocks specifies the number of hyperslab blocks to retrieve.

    Note:   The HDF5 library uses C-style ordering for multidimensional arrays, while MATLAB® uses FORTRAN-style ordering. The h5_start, h5_stride, h5_count and h5_block parameters assume C-style ordering. Please consult "Using the MATLAB Low-Level HDF5 Functions" in the MATLAB documentation for more information.

Examples

dims = [100 200];
h5_dims = fliplr(dims);
space_id = H5S.create_simple(2,h5_dims,h5_dims);
start = fliplr([10 20]); block = fliplr([20 25]);
H5S.select_hyperslab(space_id,'H5S_SELECT_SET',start,[],[],block); 
start = fliplr([20 30]); block = fliplr([20 25]);
H5S.select_hyperslab(space_id,'H5S_SELECT_NOTB',start,[],[],block); 
nblocks = H5S.get_select_hyper_nblocks(space_id);
for j = 1:nblocks
    hblocks{j} = H5S.get_select_hyper_blocklist(space_id,j-1,1);
end

See Also

|

Was this topic helpful?