Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

H5S.get_select_hyper_nblocks

Number of hyperslab blocks

Syntax

num_blocks = H5S.get_select_hyper_nblocks(space_id)

Description

num_blocks = H5S.get_select_hyper_nblocks(space_id) returns the number of hyperslab blocks in the current data space selection.

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);
Was this topic helpful?