This is machine translation

Translated by Microsoft
Mouse over text to see original. Click the button below to return to the English verison of the page.


Determine if data space is simple


output = H5S.is_simple(space_id)


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.


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);
Was this topic helpful?