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.


Determine validity of selection


output = H5S.select_valid(space_id)


output = H5S.select_valid(space_id) returns a positive value if the selection of the data space space_id is within the extent of that data space, and zero if it is not. A negative value indicates failure.


dims = [100 200];
h5_dims = fliplr(dims);
space_id = H5S.create_simple(2,h5_dims,h5_dims);
start = fliplr([90 190]); count = [11 11];
valid = H5S.select_valid(space_id);