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.


Value of enumeration data type member


value = H5T.get_member_value(type_id,membno)


value = H5T.get_member_value(type_id,membno) returns the value of the enumeration data type member specified by membno. The type_id argument is the data type identifier for the enumeration data type.


fid ='example.h5');
dset_id =,'/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.get_member_value(type_id,j-1);