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_elem_npoints

Number of element points in selection

Syntax

numpoints = H5S.get_select_elem_npoints(space_id)

Description

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

Examples

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';
H5S.select_elements(space_id,'H5S_SELECT_SET',coords)
numpoints = H5S.get_select_elem_npoints(space_id);
Was this topic helpful?