Documentation

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.

H5A.open

Open attribute

Syntax

attr_id = H5A.open(obj_id,attr_name)
attr_id = H5A.open(obj_id,attr_name,aapl_id)

Description

attr_id = H5A.open(obj_id,attr_name) opens an attribute for an object specified by a parent object identifier and attribute name.

attr_id = H5A.open(obj_id,attr_name,aapl_id) opens an attribute with an attribute access property list identifier, aapl_id. The only currently valid value for aapl_id is 'H5P_DEFAULT'.

Examples

fid = H5F.open('example.h5');
gid = H5G.open(fid,'/');
attr_id = H5A.open(gid,'attr1');
H5A.close(attr_id);
H5G.close(gid);
H5F.close(fid);
Was this topic helpful?