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