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.

H5O.set_comment_by_name

Set comment for object specified by location and object name

Syntax

H5O.set_comment_by_name(loc_id,rel_name,comment,lapl_id)

Description

H5O.set_comment_by_name(loc_id,rel_name,comment,lapl_id) sets a comment for an object specified by a location ID and a relative name. lapl_id is a link access property list identifier that can affect the outcome if links are traversed.

Examples

plist = 'H5P_DEFAULT';
fid = H5F.create('myfile.h5','H5F_ACC_TRUNC',plist,plist);
gid = H5G.create(fid,'/g1',plist);
H5O.set_comment_by_name(fid,'g1','This is a group comment.',plist);
H5G.close(gid);
H5F.close(fid);
Was this topic helpful?