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

Copy extent from source to destination data space

Syntax

H5S.extent_copy(dst_id,src_id)

Description

H5S.extent_copy(dst_id,src_id) copies the extent from the source data space, src_id, to the destination data space, dst_id.

Examples

space_id1 = H5S.create('H5S_SIMPLE');
dims = [100 200];
h5_dims = fliplr(dims);
maxdims = [100 H5ML.get_constant_value('H5S_UNLIMITED')];
h5_maxdims = fliplr(maxdims);
H5S.set_extent_simple(space_id1,2,h5_dims,h5_maxdims);
space_id2 = H5S.create('H5S_SIMPLE');
H5S.extent_copy(space_id2,space_id1);
Was this topic helpful?