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.

H5T.create

Create new data type

Syntax

output = H5T.create(class_id,size)

Description

output = H5T.create(class_id,size) creates a new data type of the class specified by class_id, with the number of bytes specified by size. The output argument is a data type identifier.

Examples

Create a signed 32-bit enumerated data type.

type_id = H5T.create('H5T_ENUM',4);
H5T.set_order(type_id,'H5T_ORDER_LE');
H5T.set_sign(type_id,'H5T_SGN_2');
H5T.enum_insert(type_id,'black',0);
H5T.enum_insert(type_id,'white',1);