H5T.array_create

Create array data type object

Syntax

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

Description

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.

    Note:   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.

Examples

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?