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.

H5A.get_name

Attribute name

Syntax

attr_name = H5A.get_name(attr_id)

Description

attr_name = H5A.get_name(attr_id) returns the name of the attribute specified by attr_id.

Examples

fid = H5F.open('example.h5');
gid = H5G.open(fid,'/g1/g1.1');
idx_type = 'H5_INDEX_NAME';
order = 'H5_ITER_INC';
attr_id = H5A.open_by_idx(gid,'dset1.1.1',idx_type,order,0);
name = H5A.get_name(attr_id);
H5A.close(attr_id);
H5G.close(gid);
H5F.close(fid);
Was this topic helpful?