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.

H5S.get_select_elem_pointlist

Element points in data space selection

Syntax

points = H5S.get_select_elem_pointlist(space_id,startpoint,numpoints)

Description

points = H5S.get_select_elem_pointlist(space_id,startpoint,numpoints) returns the list of element points in the current data space selection. startpoint specifies the element point to start with and numpoints specifies the total number of points.

points is a two-dimensional array of 0-based values specifying the coordinates of the elements. If m is the rank of the dataspace, then points will have size [m x numpoints].

Note

The ordering of the coordinate points is the same as the HDF5 library C API.

Examples

Determine the first two points in the current selection.

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);
points = H5S.get_select_elem_pointlist(space_id,0,2);