Documentation Center

  • Trial Software
  • Product Updates

H5S.is_simple

Determine if data space is simple

Syntax

output = H5S.is_simple(space_id)

Description

output = H5S.is_simple(space_id) returns a positive value if the data space specified by space_id is a simple data space, zero if it is not, and a negative value to indicate failure.

Examples

Create a new data space and verify that it is simple.

dims = [100 200];
h5_dims = fliplr(dims);
space_id = H5S.create_simple(2,h5_dims,h5_dims);
val = H5S.is_simple(space_id);
 

Create a null data space and verify that it is not simple.

space_id = H5S.create('H5S_NULL');
val = H5S.is_simple(space_id);

See Also

|

Was this topic helpful?