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.set_extent_none

Remove extent from data space

Syntax

H5S.set_extent_none(space_id)

Description

H5S.set_extent_none(space_id) removes the extent from a data space and sets the type to H5S_NO_CLASS.

Examples

fid = H5F.open('example.h5');
dset_id = H5D.open(fid,'/g3/integer2D');
space_id = H5D.get_space(dset_id);
H5S.set_extent_none(space_id);
extent_type = H5S.get_simple_extent_type(space_id);
switch(extent_type)
    case H5ML.get_constant_value('H5S_SCALAR')
        fprintf('scalar\n');
    case H5ML.get_constant_value('H5S_SIMPLE')
        fprintf('simple\n');
    case H5ML.get_constant_value('H5S_NO_CLASS')
        fprintf('no class\n');
end
Was this topic helpful?