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

Value of enumeration data type member

Syntax

value = H5T.enum_valueof(type_id,member_name)

Description

value = H5T.enum_valueof(type_id,member_name) returns the value corresponding to a specified member of an enumeration data type. type_id specifies the enumeration data type and member_name specifies the member.

Examples

fid = H5F.open('example.h5');
dset_id = H5D.open(fid,'/g3/enum');
type_id = H5D.get_type(dset_id);
num_members = H5T.get_nmembers(type_id);
for j = 1:num_members
    member_name{j} = H5T.get_member_name(type_id,j-1);
    member_value(j) = H5T.enum_valueof(type_id,member_name{j});
end
Was this topic helpful?