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.

H5T.insert

Add member to compound data type

Syntax

H5T.insert(type_id,name,offset,member_datatype)

Description

H5T.insert(type_id,name,offset,member_datatype) adds another member to the compound data type specified by type_id. The name argument is a character vector that specifies the name of the new member, which must be unique in the compound data type. offset specifies where you want to insert the new member and member_datatype specifies the data type identifier of the new member.

Examples

type_id = H5T.create('H5T_COMPOUND',16);
H5T.insert(type_id,'first',0,'H5T_NATIVE_DOUBLE');
H5T.insert(type_id,'second',8,'H5T_NATIVE_INT');
H5T.insert(type_id,'third',12,'H5T_NATIVE_UINT');

See Also

Was this topic helpful?