Documentation

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.select_valid

Determine validity of selection

Syntax

output = H5S.select_valid(space_id)

Description

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.

Examples

dims = [100 200];
h5_dims = fliplr(dims);
space_id = H5S.create_simple(2,h5_dims,h5_dims);
start = fliplr([90 190]); count = [11 11];
H5S.select_hyperslab(space_id,'H5S_SELECT_SET',start,[],count,[]); 
valid = H5S.select_valid(space_id);
Was this topic helpful?