This is machine translation

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

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.


Number of element points in selection


numpoints = H5S.get_select_elem_npoints(space_id)


numpoints = H5S.get_select_elem_npoints(space_id) returns the number of element points in the current data space selection.


Select the corner points of a data space.

dims = [100 200];
h5_dims = fliplr(dims);
space_id = H5S.create_simple(2,h5_dims,h5_dims);
coords = [0 0; 0 199; 99 0; 99 199];
coords = fliplr(coords);
coords = coords';
numpoints = H5S.get_select_elem_npoints(space_id);