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.


Create array data type object


array_type_id = H5T.array_create(base_id,h5_dims)
array_type_id = H5T.array_create(base_id,rank,h5_dims,perms)


array_type_id = H5T.array_create(base_id,h5_dims) creates a new array data type object. This interface corresponds to the 1.8 library version of H5Tarray_create.

array_type_id = H5T.array_create(base_id,rank,h5_dims,perms) creates a new array data type object. This interface corresponds to the 1.6 library version of H5Tarray_create. The perms parameter is not used at this time and can be omitted.


The HDF5 library uses C-style ordering for multidimensional arrays, while MATLAB® uses FORTRAN-style ordering. The h5_dims parameter assumes C-style ordering. Please consult "Using the MATLAB Low-Level HDF5 Functions" in the MATLAB documentation for more information.


Create a 100-by-200 double precision array data type.

base_type_id = H5T.copy('H5T_NATIVE_DOUBLE');
dims = [100 200];
h5_dims = fliplr(dims);
array_type = H5T.array_create(base_type_id,h5_dims);
Was this topic helpful?