Documentation Center

  • Trial Software
  • Product Updates

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);

See Also

|

Was this topic helpful?