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_npoints

Number of elements in data space selection

Syntax

num_points = H5S.get_select_npoints(space_id)

Description

num_points = H5S.get_select_npoints(space_id) returns the number of elements in the current data space selection.

Examples

dims = [100 200];
h5_dims = fliplr(dims);
space_id = H5S.create_simple(2,h5_dims,h5_dims);
op = 'H5S_SELECT_SET';
start = fliplr([10 20]); block = fliplr([20 30]);
H5S.select_hyperslab(space_id,'H5S_SELECT_SET',start,[],[],block); 
n = H5S.get_select_npoints(space_id);
Was this topic helpful?