Documentation

This is machine translation

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

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

H5S.create

Create new data space

Syntax

space_id = H5S.create(space_type)

Description

space_id = H5S.create(space_type) creates a new dataspace of the type specified by space_type, which can be specified by one of the following character vectors.

'H5S_SCALAR'
'H5S_SIMPLE'
'H5S_NULL'

space_id is the identifier for the new dataspace.

Examples

Create a scalar dataspace.

space_id = H5S.create('H5S_SCALAR');
numpoints = H5S.get_simple_extent_npoints(space_id);
Was this topic helpful?